在2024年12月26日十二月 下午10:48,Philippe Mathieu-Daudé写道: > On 26/12/24 22:19, Jiaxun Yang wrote: >> Store internal registers including GPRs, CSRs, and LBT scratchs >> as target_ulong, as per architecture specification. >> >> The only exception here is tlb_misc, as it's only used by QEMU >> internally and need keep to be 64bit to store all required fields. >> >> There is no migration ABI change, as target_ulong is uint64_t on >> existing loongarch64 builds anyway. > > I'm working on a prototype series where target_ulong becomes uint64_t > under TCG. This patch is going the opposite direction. Not sure what > to say at this point (I'm not rejecting it, just wondering). Does this mean TCGv will always be 64bit? I'm doing this just to keep all TCG _tl load/store sane. If that's the way to go, I'm happy to adopt full uint64_t approach. Thanks > >> >> Signed-off-by: Jiaxun Yang <jiaxun.y...@flygoat.com> >> --- >> target/loongarch/cpu.c | 34 ++++++------ >> target/loongarch/cpu.h | 132 >> ++++++++++++++++++++++----------------------- >> target/loongarch/machine.c | 120 ++++++++++++++++++++--------------------- >> 3 files changed, 143 insertions(+), 143 deletions(-) -- - Jiaxun
- [PATCH v2 22/23] target/loongarch: Wire up LoongAr... Jiaxun Yang
- [PATCH v2 10/23] target/loongarch: Scrutinise TCG ... Jiaxun Yang
- Re: [PATCH v2 10/23] target/loongarch: Scruti... Richard Henderson
- [PATCH v2 08/23] target/loongarch: Fix some modifi... Jiaxun Yang
- Re: [PATCH v2 08/23] target/loongarch: Fix so... Richard Henderson
- Re: [PATCH v2 08/23] target/loongarch: Fix so... Philippe Mathieu-Daudé
- [PATCH v2 07/23] target/loongarch: Cast address to... Jiaxun Yang
- Re: [PATCH v2 07/23] target/loongarch: Cast a... Richard Henderson
- [PATCH v2 06/23] target/loongarch: Store some uint... Jiaxun Yang
- Re: [PATCH v2 06/23] target/loongarch: Store ... Philippe Mathieu-Daudé
- Re: [PATCH v2 06/23] target/loongarch: St... Jiaxun Yang
- Re: [PATCH v2 06/23] target/loongarch... Philippe Mathieu-Daudé
- [PATCH v2 19/23] target/loongarch: Introduce max32... Jiaxun Yang
- Re: [PATCH v2 19/23] target/loongarch: Introd... Philippe Mathieu-Daudé
- Re: [PATCH v2 19/23] target/loongarch: In... Jiaxun Yang
- [PATCH v2 20/23] hw/loongarch/virt: Default to max... Jiaxun Yang
- Re: [PATCH v2 20/23] hw/loongarch/virt: Defau... Philippe Mathieu-Daudé
- Re: [PATCH v2 20/23] hw/loongarch/virt: D... Jiaxun Yang
- Re: [PATCH v2 20/23] hw/loongarch/vir... Philippe Mathieu-Daudé
- [PATCH v2 18/23] target/loongarch: ifdef out 64 bi... Jiaxun Yang
- [PATCH v2 23/23] config: Add loongarch32-softmmu t... Jiaxun Yang