diff options
author | Andreas Färber <afaerber@suse.de> | 2014-03-09 19:58:13 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 19:01:49 +0100 |
commit | 62864712b3c585545365e332a041b515e319a3b8 (patch) | |
tree | 3f3f5e8e37e81a15fcf0f8fd2cca5c3ff454dabb /target-unicore32 | |
parent | 2fad1112dbbac5b5428707e03bddd89cd20e21d2 (diff) |
target-unicore32: Clean up ENV_GET_CPU() usage
Commit fdfba1a298ae26dd44bcfdb0429314139a0bc55a added a usage of
ENV_GET_CPU() macro in target-specific code.
Use uc32_env_get_cpu() instead.
Cc: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Cc: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-unicore32')
-rw-r--r-- | target-unicore32/softmmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-unicore32/softmmu.c b/target-unicore32/softmmu.c index 22defc6db9..9552f69228 100644 --- a/target-unicore32/softmmu.c +++ b/target-unicore32/softmmu.c @@ -121,7 +121,7 @@ static int get_phys_addr_ucv2(CPUUniCore32State *env, uint32_t address, int access_type, int is_user, uint32_t *phys_ptr, int *prot, target_ulong *page_size) { - CPUState *cs = ENV_GET_CPU(env); + CPUState *cs = CPU(uc32_env_get_cpu(env)); int code; uint32_t table; uint32_t desc; |