aboutsummaryrefslogtreecommitdiff
path: root/linux-user/elfload.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2015-02-18 11:45:54 -0800
committerRichard Henderson <rth@twiddle.net>2017-02-14 08:14:59 +1100
commit84775c43f390d4f5dd9adf8732e7e0b6deed8f61 (patch)
tree56b0df7c4bfbcbafb342b4d3f7fb8c862ad2431e /linux-user/elfload.c
parentcf2ae4428f320f3d8027a50c1cd45f4b5a6c93bb (diff)
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>
Diffstat (limited to 'linux-user/elfload.c')
-rw-r--r--linux-user/elfload.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index c66cbbe84b..8271227339 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -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