From: Richard Henderson <richard.henderson@linaro.org>
To: Xianglai Li <lixianglai@loongson.cn>,
qemu-devel@nongnu.org, gaosong@loongson.cn
Cc: maobibo@loongson.cn, yangxiaojuan@loongson.cn,
zhaotianrui@loongson.cn, yijun@loongson.cn,
wuruiyang@loongson.cn, zltjiangshi@gmail.com
Subject: Re: [PATCH V6] target/loongarch: Fix tlb huge page loading issue
Date: Mon, 18 Mar 2024 06:57:42 -1000 [thread overview]
Message-ID: <ada7d62a-6e40-4383-bc3c-33140cba2c84@linaro.org> (raw)
In-Reply-To: <20240318070332.1273939-1-lixianglai@loongson.cn>
On 3/17/24 21:03, Xianglai Li wrote:
> When we use qemu tcg simulation, the page size of bios is 4KB.
> When using the level 2 super huge page (page size is 1G) to create the page table,
> it is found that the content of the corresponding address space is abnormal,
> resulting in the bios can not start the operating system and graphical interface normally.
>
> The lddir and ldpte instruction emulation has
> a problem with the use of super huge page processing above level 2.
> The page size is not correctly calculated,
> resulting in the wrong page size of the table entry found by tlb.
>
> Signed-off-by: Xianglai Li<lixianglai@loongson.cn>
> ---
> target/loongarch/cpu-csr.h | 3 +
> target/loongarch/internals.h | 5 --
> target/loongarch/tcg/tlb_helper.c | 113 +++++++++++++++++++++---------
> 3 files changed, 82 insertions(+), 39 deletions(-)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
prev parent reply other threads:[~2024-03-18 16:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 7:03 [PATCH V6] target/loongarch: Fix tlb huge page loading issue Xianglai Li
2024-03-18 16:57 ` Richard Henderson [this message]
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=ada7d62a-6e40-4383-bc3c-33140cba2c84@linaro.org \
--to=richard.henderson@linaro.org \
--cc=gaosong@loongson.cn \
--cc=lixianglai@loongson.cn \
--cc=maobibo@loongson.cn \
--cc=qemu-devel@nongnu.org \
--cc=wuruiyang@loongson.cn \
--cc=yangxiaojuan@loongson.cn \
--cc=yijun@loongson.cn \
--cc=zhaotianrui@loongson.cn \
--cc=zltjiangshi@gmail.com \
/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).