Commit 6ba8dcd773e01dc3f61b3e788a8b6f12fb8ed4de

Authored by aurel32
1 parent 30c7183b

target-alpha: fix TCG register names

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5237 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
target-alpha/translate.c
... ... @@ -54,7 +54,7 @@ static TCGv cpu_pc;
54 54 static TCGv cpu_T[3];
55 55  
56 56 /* register names */
57   -static char cpu_reg_names[5*31];
  57 +static char cpu_reg_names[10*4+21*5];
58 58  
59 59 #include "gen-icount.h"
60 60  
... ... @@ -87,7 +87,7 @@ static void alpha_translate_init(void)
87 87 sprintf(p, "ir%d", i);
88 88 cpu_ir[i] = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0,
89 89 offsetof(CPUState, ir[i]), p);
90   - p += 4;
  90 + p += (i < 10) ? 4 : 5;
91 91 }
92 92  
93 93 cpu_pc = tcg_global_mem_new(TCG_TYPE_I64, TCG_AREG0,
... ...