mbox series

[0/2] Fix mips jazz vs constant TCGCPUOps

Message ID 20210227232519.222663-1-richard.henderson@linaro.org
Headers show
Series Fix mips jazz vs constant TCGCPUOps | expand

Message

Richard Henderson Feb. 27, 2021, 11:25 p.m. UTC
We can implement the jazz behaviour with a flag on MIPSCPUClass,
rather than by adjusting the do_transaction_failed callback.


r~


Richard Henderson (2):
  target/mips: Fold jazz behaviour into mips_cpu_do_transaction_failed
  hw/core: Constify TCGCPUOps

 include/hw/core/cpu.h           |  2 +-
 target/mips/cpu-qom.h           |  3 +++
 hw/mips/jazz.c                  | 35 +++------------------------------
 target/alpha/cpu.c              |  2 +-
 target/arm/cpu.c                |  2 +-
 target/arm/cpu_tcg.c            |  2 +-
 target/avr/cpu.c                |  2 +-
 target/cris/cpu.c               |  4 ++--
 target/hexagon/cpu.c            |  2 +-
 target/hppa/cpu.c               |  2 +-
 target/i386/tcg/tcg-cpu.c       |  2 +-
 target/lm32/cpu.c               |  2 +-
 target/m68k/cpu.c               |  2 +-
 target/microblaze/cpu.c         |  2 +-
 target/mips/cpu.c               |  2 +-
 target/mips/op_helper.c         |  3 ++-
 target/moxie/cpu.c              |  2 +-
 target/nios2/cpu.c              |  2 +-
 target/openrisc/cpu.c           |  2 +-
 target/riscv/cpu.c              |  2 +-
 target/rx/cpu.c                 |  2 +-
 target/s390x/cpu.c              |  2 +-
 target/sh4/cpu.c                |  2 +-
 target/sparc/cpu.c              |  2 +-
 target/tilegx/cpu.c             |  2 +-
 target/tricore/cpu.c            |  2 +-
 target/unicore32/cpu.c          |  2 +-
 target/xtensa/cpu.c             |  2 +-
 target/ppc/translate_init.c.inc |  2 +-
 29 files changed, 35 insertions(+), 60 deletions(-)

-- 
2.25.1

Comments

Claudio Fontana Feb. 28, 2021, 9:59 a.m. UTC | #1
On 2/28/21 12:25 AM, Richard Henderson wrote:
> We can implement the jazz behaviour with a flag on MIPSCPUClass,

> rather than by adjusting the do_transaction_failed callback.

> 

> 

> r~

> 


Reviewed-by: Claudio Fontana <cfontana@suse.de>


> 

> Richard Henderson (2):

>   target/mips: Fold jazz behaviour into mips_cpu_do_transaction_failed

>   hw/core: Constify TCGCPUOps

> 

>  include/hw/core/cpu.h           |  2 +-

>  target/mips/cpu-qom.h           |  3 +++

>  hw/mips/jazz.c                  | 35 +++------------------------------

>  target/alpha/cpu.c              |  2 +-

>  target/arm/cpu.c                |  2 +-

>  target/arm/cpu_tcg.c            |  2 +-

>  target/avr/cpu.c                |  2 +-

>  target/cris/cpu.c               |  4 ++--

>  target/hexagon/cpu.c            |  2 +-

>  target/hppa/cpu.c               |  2 +-

>  target/i386/tcg/tcg-cpu.c       |  2 +-

>  target/lm32/cpu.c               |  2 +-

>  target/m68k/cpu.c               |  2 +-

>  target/microblaze/cpu.c         |  2 +-

>  target/mips/cpu.c               |  2 +-

>  target/mips/op_helper.c         |  3 ++-

>  target/moxie/cpu.c              |  2 +-

>  target/nios2/cpu.c              |  2 +-

>  target/openrisc/cpu.c           |  2 +-

>  target/riscv/cpu.c              |  2 +-

>  target/rx/cpu.c                 |  2 +-

>  target/s390x/cpu.c              |  2 +-

>  target/sh4/cpu.c                |  2 +-

>  target/sparc/cpu.c              |  2 +-

>  target/tilegx/cpu.c             |  2 +-

>  target/tricore/cpu.c            |  2 +-

>  target/unicore32/cpu.c          |  2 +-

>  target/xtensa/cpu.c             |  2 +-

>  target/ppc/translate_init.c.inc |  2 +-

>  29 files changed, 35 insertions(+), 60 deletions(-)

>