[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 29/35] hw/mips/malta: Use address translation helper to calculate
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 29/35] hw/mips/malta: Use address translation helper to calculate bootloader_run_addr |
Date: |
Sun, 3 Jan 2021 21:50:15 +0100 |
From: Jiaxun Yang <jiaxun.yang@flygoat.com>
So it will sign extend adresses properly.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20201215064200.28751-3-jiaxun.yang@flygoat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
hw/mips/malta.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hw/mips/malta.c b/hw/mips/malta.c
index 7db009a3e96..1fbb8a32207 100644
--- a/hw/mips/malta.c
+++ b/hw/mips/malta.c
@@ -1302,9 +1302,9 @@ void mips_malta_init(MachineState *machine)
/* For KVM we reserve 1MB of RAM for running bootloader */
if (kvm_enabled()) {
ram_low_size -= 0x100000;
- bootloader_run_addr = 0x40000000 + ram_low_size;
+ bootloader_run_addr = cpu_mips_kvm_um_phys_to_kseg0(NULL,
ram_low_size);
} else {
- bootloader_run_addr = 0xbfc00000;
+ bootloader_run_addr = cpu_mips_phys_to_kseg0(NULL, RESET_ADDRESS);
}
/* Write a small bootloader to the flash location. */
--
2.26.2
- Re: [PULL 23/35] hw/intc: Rework Loongson LIOINTC, (continued)
- Re: [PULL 23/35] hw/intc: Rework Loongson LIOINTC, Huacai Chen, 2021/01/10
- Re: [PULL 23/35] hw/intc: Rework Loongson LIOINTC, Jiaxun Yang, 2021/01/10
- Re: [PULL 23/35] hw/intc: Rework Loongson LIOINTC, BALATON Zoltan, 2021/01/11
- Re: [PULL 23/35] hw/intc: Rework Loongson LIOINTC, Peter Maydell, 2021/01/11
- Re: [PULL 23/35] hw/intc: Rework Loongson LIOINTC, BALATON Zoltan, 2021/01/11
- Re: [PULL 23/35] hw/intc: Rework Loongson LIOINTC, Jiaxun Yang, 2021/01/11
[PULL 25/35] hw/mips: Add Loongson-3 boot parameter helpers, Philippe Mathieu-Daudé, 2021/01/03
[PULL 26/35] hw/mips: Add Loongson-3 machine support, Philippe Mathieu-Daudé, 2021/01/03
[PULL 27/35] docs/system: Update MIPS machine documentation, Philippe Mathieu-Daudé, 2021/01/03
[PULL 28/35] hw/mips: Make bootloader addresses unsigned, Philippe Mathieu-Daudé, 2021/01/03
[PULL 29/35] hw/mips/malta: Use address translation helper to calculate bootloader_run_addr,
Philippe Mathieu-Daudé <=
[PULL 30/35] hw/mips: Use address translation helper to handle ENVP_ADDR, Philippe Mathieu-Daudé, 2021/01/03
[PULL 31/35] hw/mips/fuloong2e: Remove define DEBUG_FULOONG2E_INIT, Philippe Mathieu-Daudé, 2021/01/03
[PULL 32/35] hw/mips/fuloong2e: Replace faulty documentation links, Philippe Mathieu-Daudé, 2021/01/03
[PULL 33/35] hw/mips/fuloong2e: Remove unused env entry, Philippe Mathieu-Daudé, 2021/01/03
[PULL 34/35] hw/mips/fuloong2e: Correct cpuclock in PROM environment, Philippe Mathieu-Daudé, 2021/01/03
[PULL 35/35] tests/acceptance: Test boot_linux_console for fuloong2e, Philippe Mathieu-Daudé, 2021/01/03
Re: [PULL 00/35] MIPS patches for 2021-01-03, Peter Maydell, 2021/01/04