qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH V6] target/loongarch: Fix tlb huge page loading issue


From: Richard Henderson
Subject: Re: [PATCH V6] target/loongarch: Fix tlb huge page loading issue
Date: Mon, 18 Mar 2024 06:57:42 -1000
User-agent: Mozilla Thunderbird

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~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]