]> Git Repo - qemu.git/blobdiff - target/xtensa/cpu.c
target-xtensa: implement RER/WER instructions
[qemu.git] / target / xtensa / cpu.c
index 811d8780d6bb1959b0aaf413cb916cbe07c6e053..cd7f95823f769624571eaabc1cb78c1f60f9bd5f 100644 (file)
@@ -127,6 +127,12 @@ static void xtensa_cpu_initfn(Object *obj)
     cs->env_ptr = env;
     env->config = xcc->config;
 
+    env->address_space_er = g_malloc(sizeof(*env->address_space_er));
+    env->system_er = g_malloc(sizeof(*env->system_er));
+    memory_region_init_io(env->system_er, NULL, NULL, env, "er",
+                          UINT64_C(0x100000000));
+    address_space_init(env->address_space_er, env->system_er, "ER");
+
     if (tcg_enabled() && !tcg_inited) {
         tcg_inited = true;
         xtensa_translate_init();
This page took 0.023861 seconds and 4 git commands to generate.