• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisão916f4484a0c9a73f137b1adb8f3a9bf2540e93fb (tree)
Hora2022-02-02 19:02:26
AutorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Mensagem de Log

hw/rx: rx-gdbsim DTB load address aligned of 16byte.

Linux kernel required alined address of DTB.
But missing align in dtb load function.
Fixed to load to the correct address.

v2 changes.
Use ROUND_DOWN macro.

Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>

Mudança Sumário

Diff

--- a/hw/rx/rx-gdbsim.c
+++ b/hw/rx/rx-gdbsim.c
@@ -142,7 +142,7 @@ static void rx_gdbsim_init(MachineState *machine)
142142 exit(1);
143143 }
144144 /* DTB is located at the end of SDRAM space. */
145- dtb_offset = machine->ram_size - dtb_size;
145+ dtb_offset = ROUND_DOWN(machine->ram_size - dtb_size, 16 - 1);
146146 rom_add_blob_fixed("dtb", dtb, dtb_size,
147147 SDRAM_BASE + dtb_offset);
148148 /* Set dtb address to R1 */