diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2017-10-10 21:19:34 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2018-01-30 10:08:18 -0800 |
commit | 35136a77cb6570ffcf91820e95e58f1185e39986 (patch) | |
tree | d946b7988d8d0604aa2a97a71238fca4f16159aa /linux-user/signal.c | |
parent | 33423472f03c7693324ee86cbd76fe34346837ed (diff) | |
download | qemu-35136a77cb6570ffcf91820e95e58f1185e39986.zip qemu-35136a77cb6570ffcf91820e95e58f1185e39986.tar.gz qemu-35136a77cb6570ffcf91820e95e58f1185e39986.tar.bz2 |
target/hppa: Add control registers
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/signal.c')
-rw-r--r-- | linux-user/signal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/signal.c b/linux-user/signal.c index 2db4507..9a380b9 100644 --- a/linux-user/signal.c +++ b/linux-user/signal.c @@ -6442,7 +6442,7 @@ static void setup_sigcontext(struct target_sigcontext *sc, CPUArchState *env) __put_user(env->fr[i], &sc->sc_fr[i]); } - __put_user(env->sar, &sc->sc_sar); + __put_user(env->cr[CR_SAR], &sc->sc_sar); } static void restore_sigcontext(CPUArchState *env, struct target_sigcontext *sc) @@ -6463,7 +6463,7 @@ static void restore_sigcontext(CPUArchState *env, struct target_sigcontext *sc) __get_user(env->iaoq_f, &sc->sc_iaoq[0]); __get_user(env->iaoq_b, &sc->sc_iaoq[1]); - __get_user(env->sar, &sc->sc_sar); + __get_user(env->cr[CR_SAR], &sc->sc_sar); } /* No, this doesn't look right, but it's copied straight from the kernel. */ |