リビジョン | 67b7eb76a38c9bc9d8c51af83db1acaf5adf973d (tree) |
---|---|
日時 | 2022-01-30 23:33:49 |
作者 | Yoshinori Sato <ysato@user...> |
コミッター | Yoshinori Sato |
hw/rx: rx-gdbsim: DTB load address fix.
Linux kernel required alined address of DTB.
But missing align in dtb load function.
Fixed to load to the correct address.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
@@ -143,6 +143,7 @@ static void rx_gdbsim_init(MachineState *machine) | ||
143 | 143 | } |
144 | 144 | /* DTB is located at the end of SDRAM space. */ |
145 | 145 | dtb_offset = machine->ram_size - dtb_size; |
146 | + dtb_offset &= ~0x0f; | |
146 | 147 | rom_add_blob_fixed("dtb", dtb, dtb_size, |
147 | 148 | SDRAM_BASE + dtb_offset); |
148 | 149 | /* Set dtb address to R1 */ |