From: Song Gao <gaosong@loongson.cn>
To: qemu-devel@nongnu.org
Cc: richard.henderson@linaro.org, stefanha@gmail.com,
Xiaojuan Yang <yangxiaojuan@loongson.cn>
Subject: [PULL for 7.2-rc2 2/3] hw/loongarch: Fix setprop_sized method in fdt rtc node.
Date: Tue, 22 Nov 2022 21:10:26 +0800 [thread overview]
Message-ID: <20221122131027.1250769-3-gaosong@loongson.cn> (raw)
In-Reply-To: <20221122131027.1250769-1-gaosong@loongson.cn>
From: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Fix setprop_sized method in fdt rtc node.
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221116040300.3459818-1-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
hw/loongarch/virt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index b9c18ee517..958be74fa1 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -53,7 +53,7 @@ static void fdt_add_rtc_node(LoongArchMachineState *lams)
nodename = g_strdup_printf("/rtc@%" PRIx64, base);
qemu_fdt_add_subnode(ms->fdt, nodename);
qemu_fdt_setprop_string(ms->fdt, nodename, "compatible", "loongson,ls7a-rtc");
- qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", 0x0, base, size);
+ qemu_fdt_setprop_sized_cells(ms->fdt, nodename, "reg", 2, base, 2, size);
g_free(nodename);
}
--
2.31.1
next prev parent reply other threads:[~2022-11-22 13:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 13:10 [PULL for 7.2-rc2 0/3] loongarch for 7.2-rc2 patches Song Gao
2022-11-22 13:10 ` [PULL for 7.2-rc2 1/3] hw/loongarch: Add default stdout uart in fdt Song Gao
2022-11-22 13:10 ` Song Gao [this message]
2022-11-22 13:10 ` [PULL for 7.2-rc2 3/3] hw/loongarch: Replace the value of uart info with macro Song Gao
2022-11-22 17:09 ` [PULL for 7.2-rc2 0/3] loongarch for 7.2-rc2 patches Stefan Hajnoczi
2022-11-24 12:30 ` gaosong
2022-11-24 12:44 ` Daniel P. Berrangé
2022-11-24 12:52 ` gaosong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221122131027.1250769-3-gaosong@loongson.cn \
--to=gaosong@loongson.cn \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=stefanha@gmail.com \
--cc=yangxiaojuan@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).