mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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 <jcmvbkbc@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200829104758.22337-1-jcmvbkbc@gmail.com> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
parent
e554eb4bb5
commit
ab97f0505b
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue