From 5c130f659b20d53667e07957ebaa3e656f72b276 Mon Sep 17 00:00:00 2001 From: pbrook Date: Fri, 10 Apr 2009 14:29:45 +0000 Subject: Yet more phys_ram_base elimination. Signed-off-by: Paul Brook git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7067 c046a42c-6fe2-441c-8c8c-71466251a162 --- hw/ppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/ppc.c') diff --git a/hw/ppc.c b/hw/ppc.c index b534e39..e9f1724 100644 --- a/hw/ppc.c +++ b/hw/ppc.c @@ -1257,7 +1257,7 @@ int PPC_NVRAM_set_params (nvram_t *nvram, uint16_t NVRAM_size, NVRAM_set_lword(nvram, 0x3C, kernel_size); if (cmdline) { /* XXX: put the cmdline in NVRAM too ? */ - strcpy((char *)(phys_ram_base + CMDLINE_ADDR), cmdline); + pstrcpy_targphys(CMDLINE_ADDR, RAM_size - CMDLINE_ADDR, cmdline); NVRAM_set_lword(nvram, 0x40, CMDLINE_ADDR); NVRAM_set_lword(nvram, 0x44, strlen(cmdline)); } else { -- cgit v1.1