diff options
author | Xiaojuan Yang <yangxiaojuan@loongson.cn> | 2022-07-19 12:14:06 +0530 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-07-19 21:53:58 +0530 |
commit | c254f7affe9bb7303241c23cca66eb31f5effc1f (patch) | |
tree | 4172b135c8000b808a78e4a3011f2b4e8e99b453 /target/xtensa | |
parent | b70ec50b9d1e552a60beef6e0d689fb746963358 (diff) | |
download | qemu-c254f7affe9bb7303241c23cca66eb31f5effc1f.zip qemu-c254f7affe9bb7303241c23cca66eb31f5effc1f.tar.gz qemu-c254f7affe9bb7303241c23cca66eb31f5effc1f.tar.bz2 |
target/loongarch: Fix loongarch_cpu_class_by_name
The cpu_model argument may already have the '-loongarch-cpu' suffix,
e.g. when using the default for the LS7A1000 machine. If that fails,
try again with the suffix. Validate that the object created by the
function is derived from the proper base class.
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220715060740.1500628-2-yangxiaojuan@loongson.cn>
[rth: Try without and then with the suffix, to avoid testsuite breakage.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/xtensa')
0 files changed, 0 insertions, 0 deletions