• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

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

Commit MetaInfo

修订版916f4484a0c9a73f137b1adb8f3a9bf2540e93fb (tree)
时间2022-02-02 19:02:26
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

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>

更改概述

差异

--- 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 */