mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
target/hppa: add TLB protection id check
Signed-off-by: Sven Schnelle <svens@stackframe.org> Message-Id: <20190311191602.25796-10-svens@stackframe.org> [rth: Add required tlb flushing when prot id registers change.] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
38188fd216
commit
d5de20bd84
6 changed files with 70 additions and 9 deletions
|
@ -2256,6 +2256,16 @@ static bool trans_mtctl(DisasContext *ctx, arg_mtctl *a)
|
|||
offsetof(CPUHPPAState, cr_back[ctl - CR_IIASQ]));
|
||||
break;
|
||||
|
||||
case CR_PID1:
|
||||
case CR_PID2:
|
||||
case CR_PID3:
|
||||
case CR_PID4:
|
||||
tcg_gen_st_reg(reg, cpu_env, offsetof(CPUHPPAState, cr[ctl]));
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
gen_helper_change_prot_id(cpu_env);
|
||||
#endif
|
||||
break;
|
||||
|
||||
default:
|
||||
tcg_gen_st_reg(reg, cpu_env, offsetof(CPUHPPAState, cr[ctl]));
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue