Message ID | 20250121142341.17001-12-philmd@linaro.org |
---|---|
State | Superseded |
Headers | show |
Series | cpus: Restrict CPU has_work() handlers to system emulation | expand |
On 1/21/25 06:23, Philippe Mathieu-Daudé wrote: > Remove as unreachable code. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- > target/hexagon/cpu.c | 6 ------ > 1 file changed, 6 deletions(-) Reviewed-by: Richard Henderson <richard.henderson@linaro.org> r~
On 1/21/2025 8:23 AM, Philippe Mathieu-Daudé wrote: > Remove as unreachable code. > > Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> > --- Reviewed-by: Brian Cain <brian.cain@oss.qualcomm.com> > target/hexagon/cpu.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c > index 0b7fc98f6ce..f77e305d611 100644 > --- a/target/hexagon/cpu.c > +++ b/target/hexagon/cpu.c > @@ -262,11 +262,6 @@ static void hexagon_cpu_synchronize_from_tb(CPUState *cs, > cpu_env(cs)->gpr[HEX_REG_PC] = tb->pc; > } > > -static bool hexagon_cpu_has_work(CPUState *cs) > -{ > - return true; > -} > - > static void hexagon_restore_state_to_opc(CPUState *cs, > const TranslationBlock *tb, > const uint64_t *data) > @@ -345,7 +340,6 @@ static void hexagon_cpu_class_init(ObjectClass *c, void *data) > &mcc->parent_phases); > > cc->class_by_name = hexagon_cpu_class_by_name; > - cc->has_work = hexagon_cpu_has_work; > cc->dump_state = hexagon_dump_state; > cc->set_pc = hexagon_cpu_set_pc; > cc->get_pc = hexagon_cpu_get_pc;
diff --git a/target/hexagon/cpu.c b/target/hexagon/cpu.c index 0b7fc98f6ce..f77e305d611 100644 --- a/target/hexagon/cpu.c +++ b/target/hexagon/cpu.c @@ -262,11 +262,6 @@ static void hexagon_cpu_synchronize_from_tb(CPUState *cs, cpu_env(cs)->gpr[HEX_REG_PC] = tb->pc; } -static bool hexagon_cpu_has_work(CPUState *cs) -{ - return true; -} - static void hexagon_restore_state_to_opc(CPUState *cs, const TranslationBlock *tb, const uint64_t *data) @@ -345,7 +340,6 @@ static void hexagon_cpu_class_init(ObjectClass *c, void *data) &mcc->parent_phases); cc->class_by_name = hexagon_cpu_class_by_name; - cc->has_work = hexagon_cpu_has_work; cc->dump_state = hexagon_dump_state; cc->set_pc = hexagon_cpu_set_pc; cc->get_pc = hexagon_cpu_get_pc;
Remove as unreachable code. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> --- target/hexagon/cpu.c | 6 ------ 1 file changed, 6 deletions(-)