diff options
author | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-27 10:02:35 +0000 |
---|---|---|
committer | ths <ths@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-06-27 10:02:35 +0000 |
commit | b5dc7732e1cc2fb549e48b7b5d664f2c79628e2e (patch) | |
tree | e18d7e7fc4e2fc9bad326022331c17c2800a8bbb /hw/mips_mipssim.c | |
parent | a37ee56cb7f2094a65fff14ed5d4ff325652b802 (diff) | |
download | qemu-b5dc7732e1cc2fb549e48b7b5d664f2c79628e2e.zip qemu-b5dc7732e1cc2fb549e48b7b5d664f2c79628e2e.tar.gz qemu-b5dc7732e1cc2fb549e48b7b5d664f2c79628e2e.tar.bz2 |
More efficient target register / TC accesses.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4794 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/mips_mipssim.c')
-rw-r--r-- | hw/mips_mipssim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/mips_mipssim.c b/hw/mips_mipssim.c index e29d8af..af09d95 100644 --- a/hw/mips_mipssim.c +++ b/hw/mips_mipssim.c @@ -65,7 +65,7 @@ static void load_kernel (CPUState *env) if (kernel_size >= 0) { if ((entry & ~0x7fffffffULL) == 0x80000000) entry = (int32_t)entry; - env->PC[env->current_tc] = entry; + env->active_tc.PC = entry; } else { fprintf(stderr, "qemu: could not load kernel '%s'\n", loaderparams.kernel_filename); @@ -152,7 +152,7 @@ mips_mipssim_init (ram_addr_t ram_size, int vga_ram_size, cpu_register_physical_memory(0x1fc00000LL, bios_size, bios_offset | IO_MEM_ROM); /* We have a boot vector start address. */ - env->PC[env->current_tc] = (target_long)(int32_t)0xbfc00000; + env->active_tc.PC = (target_long)(int32_t)0xbfc00000; } if (kernel_filename) { |