diff options
author | Andreas Färber <afaerber@suse.de> | 2014-03-09 20:02:29 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-13 19:01:49 +0100 |
commit | 1cf5ccbca8915277098727d900d52c495a711f88 (patch) | |
tree | 50a34376f5f8b1b34b21d236698c42d22e64e6b9 /target-xtensa/helper.c | |
parent | 62864712b3c585545365e332a041b515e319a3b8 (diff) |
target-xtensa: Clean up ENV_GET_CPU() usage
Commits a00817cc4c18b7872e92765a4736fb2227cc237b and
fdfba1a298ae26dd44bcfdb0429314139a0bc55a added usages of ENV_GET_CPU()
macro in target-specific code.
Use xtensa_env_get_cpu() instead.
Cc: Max Filippov <jcmvbkbc@gmail.com>
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-xtensa/helper.c')
-rw-r--r-- | target-xtensa/helper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target-xtensa/helper.c b/target-xtensa/helper.c index 60cb055a93..3cb0bbd972 100644 --- a/target-xtensa/helper.c +++ b/target-xtensa/helper.c @@ -552,7 +552,7 @@ static int get_physical_addr_mmu(CPUXtensaState *env, bool update_tlb, static int get_pte(CPUXtensaState *env, uint32_t vaddr, uint32_t *pte) { - CPUState *cs = ENV_GET_CPU(env); + CPUState *cs = CPU(xtensa_env_get_cpu(env)); uint32_t paddr; uint32_t page_size; unsigned access; |