aboutsummaryrefslogtreecommitdiff
path: root/target-alpha/helper.c
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2014-03-09 18:58:57 +0100
committerAndreas Färber <afaerber@suse.de>2014-03-13 19:01:48 +0100
commitd2810ffd34a89b697f0ad4aeebf2d5f2c2abc79e (patch)
treedd534fb60f6b391161ae064c8da23c33d584b584 /target-alpha/helper.c
parent9d111183d5d67be6252dd4a4e688ef4ad323f817 (diff)
target-alpha: Clean up ENV_GET_CPU() usage
Commits 2c17449b3022ca9623c4a7e2a504a4150ac4ad30, fdfba1a298ae26dd44bcfdb0429314139a0bc55a, ab1da85791340e504d10487e1add81b9988afa98 and f606604f1c10b60ef294f1b9b229426521a365e3 added usages of ENV_GET_CPU() macro in target-specific code. Use alpha_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-alpha/helper.c')
-rw-r--r--target-alpha/helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-alpha/helper.c b/target-alpha/helper.c
index 025fdaf4d1..98ddcdf4e3 100644
--- a/target-alpha/helper.c
+++ b/target-alpha/helper.c
@@ -213,7 +213,7 @@ static int get_physical_address(CPUAlphaState *env, target_ulong addr,
int prot_need, int mmu_idx,
target_ulong *pphys, int *pprot)
{
- CPUState *cs = ENV_GET_CPU(env);
+ CPUState *cs = CPU(alpha_env_get_cpu(env));
target_long saddr = addr;
target_ulong phys = 0;
target_ulong L1pte, L2pte, L3pte;