mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
linux-user/hppa: Force all code addresses to PRIV_USER
The kernel does this along the return path to user mode. Reviewed-by: Helge Deller <deller@gmx.de> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
a0ea4becca
commit
3c13b0ffe7
8 changed files with 31 additions and 17 deletions
|
@ -163,12 +163,18 @@ int hppa_cpu_gdb_write_register(CPUState *cs, uint8_t *mem_buf, int n)
|
|||
env->cr[CR_SAR] = val & (hppa_is_pa20(env) ? 63 : 31);
|
||||
break;
|
||||
case 33:
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
val |= PRIV_USER;
|
||||
#endif
|
||||
env->iaoq_f = val;
|
||||
break;
|
||||
case 34:
|
||||
env->iasq_f = (uint64_t)val << 32;
|
||||
break;
|
||||
case 35:
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
val |= PRIV_USER;
|
||||
#endif
|
||||
env->iaoq_b = val;
|
||||
break;
|
||||
case 36:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue