Hi all, This patch series adds host model support for LoongArch. The current approach is to read cpucfg information from the physical machine and use it together with the CPU model information and feature information in the XML file to jointly determine which CPU features need to be enabled for the host model. The specific policy is as follows: features supported by both the physical machine and the CPU model in the XML file are enabled; otherwise, they are disabled. Features that exist in feature.xml but are not mentioned by either the physical machine's cpucfg or the CPU model in the XML file are also set to disabled. Cc: Bibo Mao <maobibo@loongson.cn> Xianglai Li (6): cpu_map: add LoongArch CPU map XML files cpu: add LoongArch CPU vendor parsing cpu: add LoongArch CPU feature parsing cpu: add LoongArch CPU model parsing cpu: add LoongArch CPU decode support cpu: add LoongArch host model support po/POTFILES | 1 + src/cpu/cpu.h | 2 + src/cpu/cpu_loongarch.c | 645 ++++++++++++++++++++++++++++- src/cpu/cpu_loongarch_data.h | 34 ++ src/cpu_map/index.xml | 13 + src/cpu_map/loongarch_features.xml | 26 ++ src/cpu_map/loongarch_la464.xml | 10 + src/cpu_map/loongarch_la664.xml | 11 + src/cpu_map/loongarch_vendors.xml | 3 + src/cpu_map/meson.build | 4 + src/qemu/qemu_capabilities.c | 2 +- 11 files changed, 745 insertions(+), 6 deletions(-) create mode 100644 src/cpu/cpu_loongarch_data.h create mode 100644 src/cpu_map/loongarch_features.xml create mode 100644 src/cpu_map/loongarch_la464.xml create mode 100644 src/cpu_map/loongarch_la664.xml create mode 100644 src/cpu_map/loongarch_vendors.xml -- 2.39.1