mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target/openrisc: Keep SR_F in a separate variable
This avoids having to keep merging and extracting the flag from SR. Reviewed-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
cf2ae4428f
commit
84775c43f3
9 changed files with 98 additions and 78 deletions
|
@ -49,8 +49,7 @@ void HELPER(mtspr)(CPUOpenRISCState *env,
|
|||
(rb & (SR_IME | SR_DME | SR_SM))) {
|
||||
tlb_flush(cs);
|
||||
}
|
||||
env->sr = rb;
|
||||
env->sr |= SR_FO; /* FO is const equal to 1 */
|
||||
cpu_set_sr(env, rb);
|
||||
if (env->sr & SR_DME) {
|
||||
env->tlb->cpu_openrisc_map_address_data =
|
||||
&cpu_openrisc_get_phys_data;
|
||||
|
@ -200,7 +199,7 @@ target_ulong HELPER(mfspr)(CPUOpenRISCState *env,
|
|||
return env->npc;
|
||||
|
||||
case TO_SPR(0, 17): /* SR */
|
||||
return env->sr;
|
||||
return cpu_get_sr(env);
|
||||
|
||||
case TO_SPR(0, 18): /* PPC */
|
||||
return env->ppc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue