OSDN Git Service

target/ppc: unify cpu->has_work based on cs->interrupt_request
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Fri, 21 Oct 2022 14:21:55 +0000 (11:21 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Fri, 28 Oct 2022 16:15:22 +0000 (13:15 -0300)
commitab9cfa04523e0312c741e16ca54c5fa4e1eee9e2
treeb891879eb6893665a7aea9ba7bc12410bff9f093
parent2fdedcbc69564f52a1c33bedfa291707e998a132
target/ppc: unify cpu->has_work based on cs->interrupt_request

Now that cs->interrupt_request indicates if there is any unmasked
interrupt, checking if the CPU has work to do can be simplified to a
single check that works for all CPU models.

Reviewed-by: Fabiano Rosas <farosas@linux.ibm.com>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Message-Id: <20221021142156.4134411-3-matheus.ferst@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/cpu_init.c