diff mbox series

[v4,10/15] hw/loongarch: Remove restriction of la464 cores in the virt machine

Message ID 20230822032724.1353391-11-gaosong@loongson.cn (mailing list archive)
State New, archived
Headers show
Series Add some checks before translating instructions | expand

Commit Message

Song Gao Aug. 22, 2023, 3:27 a.m. UTC
Allow virt machine to be used with la132 instead of la464.

Co-authored-by: Jiajie Chen <c@jia.je>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
 hw/loongarch/virt.c | 5 -----
 1 file changed, 5 deletions(-)

Comments

Richard Henderson Aug. 22, 2023, 4:29 a.m. UTC | #1
On 8/21/23 20:27, Song Gao wrote:
> Allow virt machine to be used with la132 instead of la464.
> 
> Co-authored-by: Jiajie Chen<c@jia.je>
> Signed-off-by: Song Gao<gaosong@loongson.cn>
> ---
>   hw/loongarch/virt.c | 5 -----
>   1 file changed, 5 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
Philippe Mathieu-Daudé Aug. 22, 2023, 6:56 a.m. UTC | #2
On 22/8/23 05:27, Song Gao wrote:
> Allow virt machine to be used with la132 instead of la464.
> 
> Co-authored-by: Jiajie Chen <c@jia.je>
> Signed-off-by: Song Gao <gaosong@loongson.cn>
> ---
>   hw/loongarch/virt.c | 5 -----
>   1 file changed, 5 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff mbox series

Patch

diff --git a/hw/loongarch/virt.c b/hw/loongarch/virt.c
index e19b042ce8..af15bf5aaa 100644
--- a/hw/loongarch/virt.c
+++ b/hw/loongarch/virt.c
@@ -798,11 +798,6 @@  static void loongarch_init(MachineState *machine)
         cpu_model = LOONGARCH_CPU_TYPE_NAME("la464");
     }
 
-    if (!strstr(cpu_model, "la464")) {
-        error_report("LoongArch/TCG needs cpu type la464");
-        exit(1);
-    }
-
     if (ram_size < 1 * GiB) {
         error_report("ram_size must be greater than 1G.");
         exit(1);