diff options
| author | Andreas Färber <afaerber@suse.de> | 2013-05-27 06:49:53 +0200 |
|---|---|---|
| committer | Andreas Färber <afaerber@suse.de> | 2013-06-28 13:25:13 +0200 |
| commit | c658b94f6e8c206c59d02aa6fbac285b86b53d2c (patch) | |
| tree | 100efd8e543a576daa8d7dc6684ce1154ea08245 /target-microblaze/cpu.h | |
| parent | ce927ed9e40e25008453eb8f130661514b633341 (diff) | |
| download | focaccia-qemu-c658b94f6e8c206c59d02aa6fbac285b86b53d2c.tar.gz focaccia-qemu-c658b94f6e8c206c59d02aa6fbac285b86b53d2c.zip | |
cpu: Turn cpu_unassigned_access() into a CPUState hook
Use it for all targets, but be careful not to pass invalid CPUState. cpu_single_env can be NULL, e.g. on Xen. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-microblaze/cpu.h')
| -rw-r--r-- | target-microblaze/cpu.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/target-microblaze/cpu.h b/target-microblaze/cpu.h index 1813939fc9..75ae5baf36 100644 --- a/target-microblaze/cpu.h +++ b/target-microblaze/cpu.h @@ -367,8 +367,9 @@ static inline void cpu_get_tb_cpu_state(CPUMBState *env, target_ulong *pc, } #if !defined(CONFIG_USER_ONLY) -void cpu_unassigned_access(CPUMBState *env1, hwaddr addr, - int is_write, int is_exec, int is_asi, int size); +void mb_cpu_unassigned_access(CPUState *cpu, hwaddr addr, + bool is_write, bool is_exec, int is_asi, + unsigned size); #endif static inline bool cpu_has_work(CPUState *cpu) |