target/hexagon: define a v66 CPU
PATCH 1/1 target/hexagon: define a v66 CPU
For now, v66 behavior is the same as other CPUs.
Signed-off-by Brian Cain <[email protected]>
--- target/hexagon/cpu-qom.h | 1 + target/hexagon/cpu.c | 2 ++ 2 files changed, 3 insertions(+)
target/hexagon/cpu-qom.h +1 -0
@@ -16,6 +16,7 @@#define HEXAGON_CPU_TYPE_SUFFIX "-" TYPE_HEXAGON_CPU#define HEXAGON_CPU_TYPE_NAME (name) (name HEXAGON_CPU_TYPE_SUFFIX) +#define TYPE_HEXAGON_CPU_V66 HEXAGON_CPU_TYPE_NAME("v66")#define TYPE_HEXAGON_CPU_V67 HEXAGON_CPU_TYPE_NAME("v67")#define TYPE_HEXAGON_CPU_V68 HEXAGON_CPU_TYPE_NAME("v68")#define TYPE_HEXAGON_CPU_V69 HEXAGON_CPU_TYPE_NAME("v69")
target/hexagon/cpu.c +2 -0
@@ -26,6 +26,7 @@#include "tcg/tcg.h" #include "exec/gdbstub.h" +static void hexagon_v66_cpu_init (Object *obj) { }static void hexagon_v67_cpu_init (Object *obj) { }static void hexagon_v68_cpu_init (Object *obj) { }static void hexagon_v69_cpu_init (Object *obj) { }
@@ -373,6 +374,7 @@ static const TypeInfo hexagon_cpu_type_infos[] = { .class_size = sizeof(HexagonCPUClass), .class_init = hexagon_cpu_class_init, }, +DEFINE_CPU (TYPE_HEXAGON_CPU_V66 , hexagon_v66_cpu_init),DEFINE_CPU (TYPE_HEXAGON_CPU_V67 , hexagon_v67_cpu_init),DEFINE_CPU (TYPE_HEXAGON_CPU_V68 , hexagon_v68_cpu_init), DEFINE_CPU(TYPE_HEXAGON_CPU_V69, hexagon_v69_cpu_init),
Signature · 1 line
2.34.1
Quoted 7 lines · Brian Cain
For now, v66 behavior is the same as other CPUs.
Signed-off-by Brian Cain <[email protected]>--- target/hexagon/cpu-qom.h | 1 + target/hexagon/cpu.c | 2 ++ 2 files changed, 3 insertions(+)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 11 lines
-----Original Message-----
From: Brian Cain <[email protected]>
Sent: Tuesday, July 30, 2024 7:10 PM
To: [email protected]
Cc: [email protected]; [email protected];
[email protected]; [email protected];
[email protected]
Subject: [PATCH] target/hexagon: define a v66 CPU
Quoted 7 lines
For now, v66 behavior is the same as other CPUs.
Signed-off-by Brian Cain <[email protected]>--- target/hexagon/cpu-qom.h | 1 + target/hexagon/cpu.c | 2 ++ 2 files changed, 3 insertions(+)
Reviewed-by Taylor Simpson <[email protected]>