Commit f617a9a6bb3b66e93d30f57e966f425e58cef8bc

Authored by blueswir1
1 parent 8a16d273

Update TLB miss addresses

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4897 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 0 deletions
target-sparc/helper.c
@@ -449,6 +449,7 @@ static int get_physical_address_data(CPUState *env, @@ -449,6 +449,7 @@ static int get_physical_address_data(CPUState *env,
449 #ifdef DEBUG_MMU 449 #ifdef DEBUG_MMU
450 printf("DMISS at 0x%" PRIx64 "\n", address); 450 printf("DMISS at 0x%" PRIx64 "\n", address);
451 #endif 451 #endif
  452 + env->dmmuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff);
452 env->exception_index = TT_DMISS; 453 env->exception_index = TT_DMISS;
453 return 1; 454 return 1;
454 } 455 }
@@ -507,6 +508,7 @@ static int get_physical_address_code(CPUState *env, @@ -507,6 +508,7 @@ static int get_physical_address_code(CPUState *env,
507 #ifdef DEBUG_MMU 508 #ifdef DEBUG_MMU
508 printf("TMISS at 0x%" PRIx64 "\n", address); 509 printf("TMISS at 0x%" PRIx64 "\n", address);
509 #endif 510 #endif
  511 + env->immuregs[6] = (address & ~0x1fffULL) | (env->dmmuregs[1] & 0x1fff);
510 env->exception_index = TT_TMISS; 512 env->exception_index = TT_TMISS;
511 return 1; 513 return 1;
512 } 514 }