From 2e42d52d95d613e38961727e6bac2028681340e3 Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Mon, 11 Apr 2011 23:57:07 +0200 Subject: [PATCH] microblaze: Correct ec mask in debug print Signed-off-by: Edgar E. Iglesias --- linux-user/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index e651bfdad8..91600877d2 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -2258,7 +2258,7 @@ void cpu_loop (CPUState *env) break; default: printf ("Unhandled hw-exception: 0x%x\n", - env->sregs[SR_ESR] & 5); + env->sregs[SR_ESR] & ESR_EC_MASK); cpu_dump_state(env, stderr, fprintf, 0); exit (1); break; -- 2.30.2