mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
hw/hppa: Use the IEC binary prefix definitions
It eases code review, unit is explicit. Patch generated using: $ git grep -E '(1024|2048|4096|8192|(<<|>>).?(10|20|30))' hw/ include/hw/ and modified manually. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Acked-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20180625124238.25339-20-f4bug@amsat.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
393fc4c740
commit
c108cc59dc
2 changed files with 7 additions and 6 deletions
|
@ -17,7 +17,7 @@
|
|||
#include "hw/timer/i8254.h"
|
||||
#include "hw/char/serial.h"
|
||||
#include "hppa_sys.h"
|
||||
#include "qemu/cutils.h"
|
||||
#include "qemu/units.h"
|
||||
#include "qapi/error.h"
|
||||
#include "qemu/log.h"
|
||||
|
||||
|
@ -178,8 +178,8 @@ static void machine_hppa_init(MachineState *machine)
|
|||
}
|
||||
qemu_log_mask(CPU_LOG_PAGE, "Kernel loaded at 0x%08" PRIx64
|
||||
"-0x%08" PRIx64 ", entry at 0x%08" PRIx64
|
||||
", size %ld kB.\n",
|
||||
kernel_low, kernel_high, kernel_entry, size / 1024);
|
||||
", size %" PRIu64 " kB\n",
|
||||
kernel_low, kernel_high, kernel_entry, size / KiB);
|
||||
|
||||
if (kernel_cmdline) {
|
||||
cpu[0]->env.gr[24] = 0x4000;
|
||||
|
@ -203,8 +203,8 @@ static void machine_hppa_init(MachineState *machine)
|
|||
(1) Due to sign-extension problems and PDC,
|
||||
put the initrd no higher than 1G.
|
||||
(2) Reserve 64k for stack. */
|
||||
initrd_base = MIN(ram_size, 1024 * 1024 * 1024);
|
||||
initrd_base = initrd_base - 64 * 1024;
|
||||
initrd_base = MIN(ram_size, 1 * GiB);
|
||||
initrd_base = initrd_base - 64 * KiB;
|
||||
initrd_base = (initrd_base - initrd_size) & TARGET_PAGE_MASK;
|
||||
|
||||
if (initrd_base < kernel_high) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue