]> git.proxmox.com Git - mirror_qemu.git/commit
target/loongarch: Add TCG macro in structure CPUArchState
authorBibo Mao <maobibo@loongson.cn>
Mon, 6 May 2024 01:19:12 +0000 (09:19 +0800)
committerSong Gao <gaosong@loongson.cn>
Thu, 9 May 2024 07:18:48 +0000 (15:18 +0800)
commit6f703a48410db455057cc90c170e908de83b23fc
tree1c221efffeb2b8159eb7dc0679ac8f5d6725adf4
parentf532cf013133320045b8588c2f62fc847902fd18
target/loongarch: Add TCG macro in structure CPUArchState

In structure CPUArchState some struct elements are only used in TCG
mode, and it is not used in KVM mode. Macro CONFIG_TCG is added to
make it simpiler in KVM mode, also there is the same modification
in c code when these structure elements are used.

When VM runs in KVM mode, TLB entries are not used and do not need
migrate. It is only useful when it runs in TCG mode.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20240506011912.2108842-1-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
target/loongarch/cpu.c
target/loongarch/cpu.h
target/loongarch/cpu_helper.c
target/loongarch/machine.c