Commit 3930367245c88b51ed8c182274c5461de93701ee

Authored by aurel32
1 parent 52a0e9eb

mips malta: fix commit 7064

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

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7079 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 3 deletions
hw/mips_malta.c
... ... @@ -679,13 +679,13 @@ static void prom_set(int index, const char *string, ...)
679 679 }
680 680  
681 681 table_addr = ENVP_ADDR + sizeof(int32_t) * ENVP_NB_ENTRIES
682   - + index * ENVP_ENTRY_SIZE + VIRT_TO_PHYS_ADDEND;
683   - stl_raw(p, table_addr);
  682 + + index * ENVP_ENTRY_SIZE;
  683 + stl_phys(p, table_addr);
684 684  
685 685 va_start(ap, string);
686 686 vsnprintf(buf, ENVP_ENTRY_SIZE, string, ap);
687 687 va_end(ap);
688   - pstrcpy_targphys(table_addr, ENVP_ENTRY_SIZE, buf);
  688 + pstrcpy_targphys(table_addr + VIRT_TO_PHYS_ADDEND, ENVP_ENTRY_SIZE, buf);
689 689 }
690 690  
691 691 /* Kernel */
... ...