diff options
Diffstat (limited to 'hw/lm32_hwsetup.h')
-rw-r--r-- | hw/lm32_hwsetup.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/lm32_hwsetup.h b/hw/lm32_hwsetup.h index 8fc285e..853e9ab 100644 --- a/hw/lm32_hwsetup.h +++ b/hw/lm32_hwsetup.h @@ -71,7 +71,7 @@ static inline void hwsetup_free(HWSetup *hw) } static inline void hwsetup_create_rom(HWSetup *hw, - target_phys_addr_t base) + hwaddr base) { rom_add_blob("hwsetup", hw->data, TARGET_PAGE_SIZE, base); } @@ -96,7 +96,7 @@ static inline void hwsetup_add_tag(HWSetup *hw, enum hwsetup_tag t) static inline void hwsetup_add_str(HWSetup *hw, const char *str) { - strncpy(hw->ptr, str, 31); /* make sure last byte is zero */ + pstrcpy(hw->ptr, 32, str); hw->ptr += 32; } |