From dad081ee69d58e0e7c32b66b6a8a47344f830548 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 4 Jan 2010 11:19:14 -0800 Subject: 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 Signed-off-by: Aurelien Jarno --- linux-user/main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'linux-user/main.c') 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) { -- cgit v1.2.3-55-g7522