From: Max Filippov Date: Sat, 29 Aug 2020 10:47:58 +0000 (-0700) Subject: target/xtensa: enable all coprocessors for linux-user X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ab97f0505bec6280c5455009b7678daf5c9278bc;p=qmiga%2Fqemu.git target/xtensa: enable all coprocessors for linux-user Linux userspace always sees coprocessors as enabled. CPENABLE register and coprocessor exceptions are used internally by the kernel to manage lazy coprocessor context switch. None of it is needed for linux-user. Always enable all coprocessors for user emulation. Signed-off-by: Max Filippov Reviewed-by: Richard Henderson Message-Id: <20200829104758.22337-1-jcmvbkbc@gmail.com> Signed-off-by: Laurent Vivier --- diff --git a/target/xtensa/cpu.c b/target/xtensa/cpu.c index 6a033e778c..88a32268a1 100644 --- a/target/xtensa/cpu.c +++ b/target/xtensa/cpu.c @@ -93,6 +93,7 @@ static void xtensa_cpu_reset(DeviceState *dev) !xtensa_abi_call0()) { env->sregs[PS] |= PS_WOE; } + env->sregs[CPENABLE] = 0xff; #endif env->sregs[VECBASE] = env->config->vecbase; env->sregs[IBREAKENABLE] = 0;