Comments
Patch
@@ -3525,6 +3525,7 @@ static const struct cpu_def_t cpu_defs[] = {
CPUAlphaState * cpu_alpha_init (const char *cpu_model)
{
+ static bool inited;
AlphaCPU *cpu;
CPUAlphaState *env;
int implver, amask, i, max;
@@ -3532,7 +3533,10 @@ CPUAlphaState * cpu_alpha_init (const char *cpu_model)
cpu = ALPHA_CPU(object_new(TYPE_ALPHA_CPU));
env = &cpu->env;
- alpha_translate_init();
+ if (!inited) {
+ inited = true;
+ alpha_translate_init();
+ }
/* Default to ev67; no reason not to emulate insns by default. */
implver = IMPLVER_21264;