mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13: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
|
@ -1054,9 +1054,8 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs,
|
|||
for (i = 0; i < 32; i++) {
|
||||
(*regs)[i] = tswapreg(env->gpr[i]);
|
||||
}
|
||||
|
||||
(*regs)[32] = tswapreg(env->pc);
|
||||
(*regs)[33] = tswapreg(env->sr);
|
||||
(*regs)[33] = tswapreg(cpu_get_sr(env));
|
||||
}
|
||||
#define ELF_HWCAP 0
|
||||
#define ELF_PLATFORM NULL
|
||||
|
|
|
@ -4765,9 +4765,8 @@ int main(int argc, char **argv, char **envp)
|
|||
for (i = 0; i < 32; i++) {
|
||||
env->gpr[i] = regs->gpr[i];
|
||||
}
|
||||
|
||||
env->sr = regs->sr;
|
||||
env->pc = regs->pc;
|
||||
cpu_set_sr(env, regs->sr);
|
||||
}
|
||||
#elif defined(TARGET_SH4)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue