summary refs log tree commit diff stats
path: root/linux-user/main.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2010-01-04 11:19:14 -0800
committerAurelien Jarno <aurelien@aurel32.net>2010-02-23 23:36:22 +0100
commitdad081ee69d58e0e7c32b66b6a8a47344f830548 (patch)
tree19f32f1cbe3beea43ccd647f6bdeeb2ed535b42e /linux-user/main.c
parent8443effb50ad6d762d144e702a9b9a30e96f887c (diff)
downloadfocaccia-qemu-dad081ee69d58e0e7c32b66b6a8a47344f830548.tar.gz
focaccia-qemu-dad081ee69d58e0e7c32b66b6a8a47344f830548.zip
target-alpha: Reduce internal processor registers for user-mode.
The existing set of IPRs is totally irrelevant to user-mode emulation.
Indeed, they most are irrelevant to implementing kernel-mode emulation,
and would only be relevant to PAL-mode emulation, which I suspect that
no one will ever attempt.

Reducing the set of processor registers reduces the size of the CPU state.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'linux-user/main.c')
-rw-r--r--linux-user/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/linux-user/main.c b/linux-user/main.c
index 1189dda603..88cd4a0f51 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -3054,10 +3054,8 @@ int main(int argc, char **argv, char **envp)
         for(i = 0; i < 28; i++) {
             env->ir[i] = ((abi_ulong *)regs)[i];
         }
-        env->ipr[IPR_USP] = regs->usp;
-        env->ir[30] = regs->usp;
+        env->ir[IR_SP] = regs->usp;
         env->pc = regs->pc;
-        env->unique = regs->unique;
     }
 #elif defined(TARGET_CRIS)
     {