target/ppc: receive DisasContext explicitly in GEN_PRIV
commit9f0cf041975f76720681b218f217eb23333c7c1a
authorMatheus Ferst <matheus.ferst@eldorado.org.br>
Fri, 1 Jul 2022 13:34:57 +0000 (1 10:34 -0300)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 18 Jul 2022 16:59:43 +0000 (18 13:59 -0300)
treeea5ad0fa46d83d891680baa1b2ac9b46f964da42
parente7beaea55bd1efcb554b8e021092a2e79a317b61
target/ppc: receive DisasContext explicitly in GEN_PRIV

GEN_PRIV and related CHK_* macros just assumed that variable named
"ctx" would be in scope when they are used, and that it would be a
pointer to DisasContext. Change these macros to receive the pointer
explicitly.

Reviewed-by: Leandro Lupori <leandro.lupori@eldorado.org.br>
Signed-off-by: Matheus Ferst <matheus.ferst@eldorado.org.br>
Signed-off-by: Lucas Coutinho <lucas.coutinho@eldorado.org.br>
Message-Id: <20220701133507.740619-2-lucas.coutinho@eldorado.org.br>
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
target/ppc/translate.c
target/ppc/translate/fp-impl.c.inc