Skip to content

Commit

Permalink
target-unicore32: Clean up ENV_GET_CPU() usage
Browse files Browse the repository at this point in the history
Commit fdfba1a 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>
  • Loading branch information
afaerber committed Mar 13, 2014
1 parent 2fad111 commit 6286471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target-unicore32/softmmu.c
Expand Up @@ -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;
Expand Down

0 comments on commit 6286471

Please sign in to comment.