qemu-e2k/target-cris
Andreas Färber 6e42be7cd1 cpu: Drop unnecessary dynamic casts in *_env_get_cpu()
A transition from CPUFooState to FooCPU can be considered safe,
just like FooCPU::env access in the opposite direction.
The only benefit of the FOO_CPU() casts would be protection against
bogus CPUFooState pointers, but then surrounding code would likely
break, too.

This should slightly improve interrupt etc. performance when going from
CPUFooState to FooCPU.
For any additional CPU() casts see 3556c233d9
(qom: allow turning cast debugging off).

Reported-by: Anthony Liguori <aliguori@us.ibm.com>
Acked-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2013-07-09 21:20:28 +02:00
..
Makefile.objs target-cris: Switch to AREG0 free mode 2012-09-15 17:44:33 +00:00
cpu-qom.h cpu: Drop unnecessary dynamic casts in *_env_get_cpu() 2013-07-09 21:20:28 +02:00
cpu.c cpu: Change qemu_init_vcpu() argument to CPUState 2013-06-28 13:25:13 +02:00
cpu.h linux-user: Move cpu_clone_regs() and cpu_set_tls() into linux-user 2013-07-09 21:20:28 +02:00
crisv10-decode.h Update to a hopefully more future proof FSF address 2010-03-07 15:48:43 +00:00
crisv32-decode.h janitor: add guards to headers 2012-12-19 08:31:31 +01:00
helper.c cpu: Turn cpu_dump_{state,statistics}() into CPUState hooks 2013-06-28 13:25:12 +02:00
helper.h exec: move include files to include/exec/ 2012-12-19 08:31:31 +01:00
machine.c Convert machine registration to use module init functions 2009-05-21 08:47:55 -05:00
mmu.c target-cris: Don't overuse CPUState 2012-03-14 22:20:25 +01:00
mmu.h target-cris: Don't overuse CPUState 2012-03-14 22:20:25 +01:00
op_helper.c target-cris: Build fix for debug output 2013-02-04 16:12:57 +01:00
opcode-cris.h target-cris/opcode-cris.h: rename REG_PC/SP to CRIS_REG_PC/SP 2011-08-20 01:41:01 +02:00
translate.c cpu: Turn cpu_dump_{state,statistics}() into CPUState hooks 2013-06-28 13:25:12 +02:00
translate_v10.c target-cris: Move TCG initialization to CRISCPU initfn 2013-02-16 14:50:58 +01:00