[PATCH RESEND 11/11] target/ppc: Implement slbiag

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 1 + target/ppc/insn32.decode | 4 +++ target/ppc/mmu-hash64.c | 27 target/ppc/translate/storage-ctrl-impl.c.inc | 14

[PATCH RESEND 05/11] target/ppc: Move slbia to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 5 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 17

[PATCH RESEND 10/11] target/ppc: Move slbsync to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/insn32.decode | 2 ++ target/ppc/translate.c | 17 - target/ppc/translate/storage-ctrl-impl.c.inc | 14 ++ 3 files changed, 16 insertions(+), 17

[PATCH RESEND 09/11] target/ppc: Move slbfee to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 26

[PATCH RESEND 06/11] target/ppc: Move slbmte to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 14

[PATCH RESEND 07/11] target/ppc: Move slbmfev to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 12 target

[PATCH RESEND 08/11] target/ppc: Move slbmfee to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 1 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target

[PATCH RESEND 02/11] target/ppc: add macros to check privilege level

2022-07-01 Thread Lucas Coutinho
From: Matheus Ferst Equivalent to CHK_SV and CHK_HV, but can be used in decodetree methods. Reviewed-by: Leandro Lupori Signed-off-by: Matheus Ferst Signed-off-by: Lucas Coutinho --- target/ppc/translate.c | 21 + target/ppc/translate/fixedpoint

[PATCH RESEND 04/11] target/ppc: Move slbieg to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 1 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target

[PATCH RESEND 03/11] target/ppc: Move slbie to decodetree

2022-07-01 Thread Lucas Coutinho
Reviewed-by: Leandro Lupori Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 7 +++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13

[PATCH RESEND 00/11] target/ppc: Implement slbiag move slb* to decodetree

2022-07-01 Thread Lucas Coutinho
ion to decodetree: slbie: SLB Invalidate Entry X-form slbieg: SLB Invalidate Entry Global X-form slbia: SLB Invalidate All X-form slbmte: SLB Move To Entry X-form slbmfev: SLB Move From Entry VSID X-form slbmfee: SLB Move From Entry ESID X-form slbfee: SLB Find Entry ESID slbsync: SLB Synchronize

[PATCH RESEND 01/11] target/ppc: receive DisasContext explicitly in GEN_PRIV

2022-07-01 Thread Lucas Coutinho
heus Ferst Signed-off-by: Lucas Coutinho --- target/ppc/translate.c | 299 +++-- target/ppc/translate/fp-impl.c.inc | 4 +- 2 files changed, 154 insertions(+), 149 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 4fcb311c2d..

[PATCH RESEND 11/11] target/ppc: Implement slbiag

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 1 + target/ppc/insn32.decode | 4 +++ target/ppc/mmu-hash64.c | 27 target/ppc/translate/storage-ctrl-impl.c.inc | 14 ++ 4 files changed, 46

[PATCH RESEND 05/11] target/ppc: Move slbia to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 5 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 17 - target/ppc/translate/storage

[PATCH RESEND 09/11] target/ppc: Move slbfee to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 26 --- target/ppc/translate/storage-ctrl

[PATCH RESEND 00/11] target/ppc: Implement slbiag move slb* to decodetree

2022-06-27 Thread Lucas Coutinho
lidate Entry X-form slbieg: SLB Invalidate Entry Global X-form slbia: SLB Invalidate All X-form slbmte: SLB Move To Entry X-form slbmfev: SLB Move From Entry VSID X-form slbmfee: SLB Move From Entry ESID X-form slbfee: SLB Find Entry ESID slbsync: SLB Synchronize Lucas Coutinho (9): target/ppc

[PATCH RESEND 10/11] target/ppc: Move slbsync to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/insn32.decode | 2 ++ target/ppc/translate.c | 17 - target/ppc/translate/storage-ctrl-impl.c.inc | 14 ++ 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/target

[PATCH RESEND 03/11] target/ppc: Move slbie to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 7 +++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target/ppc/translate/storage

[PATCH RESEND 06/11] target/ppc: Move slbmte to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 14 -- target/ppc/translate/storage-ctrl

[PATCH RESEND 07/11] target/ppc: Move slbmfev to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 12 target/ppc/translate/storage-ctrl

[PATCH RESEND 08/11] target/ppc: Move slbmfee to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 1 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target/ppc/translate/storage-ctrl

[PATCH RESEND 02/11] target/ppc: add macros to check privilege level

2022-06-27 Thread Lucas Coutinho
From: Matheus Ferst Equivalent to CHK_SV and CHK_HV, but can be used in decodetree methods. Signed-off-by: Matheus Ferst Signed-off-by: Lucas Coutinho --- target/ppc/translate.c | 21 + target/ppc/translate/fixedpoint-impl.c.inc | 7 ++- 2 files

[PATCH RESEND 04/11] target/ppc: Move slbieg to decodetree

2022-06-27 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 1 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target/ppc/translate/storage-ctrl

[PATCH RESEND 01/11] target/ppc: receive DisasContext explicitly in GEN_PRIV

2022-06-27 Thread Lucas Coutinho
From: Matheus Ferst 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. Signed-off-by: Matheus Ferst Signed-off-by: Luca

[PATCH 10/11] target/ppc: Move slbsync to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/insn32.decode | 2 ++ target/ppc/translate.c | 17 - target/ppc/translate/storage-ctrl-impl.c.inc | 14 ++ 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/target

[PATCH 08/11] target/ppc: Move slbmfee to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 1 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target/ppc/translate/storage-ctrl

[PATCH 05/11] target/ppc: Move slbia to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 5 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 17 - target/ppc/translate/storage

[PATCH 04/11] target/ppc: Move slbieg to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 1 + target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target/ppc/translate/storage-ctrl

[PATCH 03/11] target/ppc: Move slbie to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 7 +++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 13 - target/ppc/translate/storage

[PATCH 00/11] target/ppc: Implement slbiag move slb* to decodetree

2022-06-15 Thread Lucas Coutinho
slbmfev: SLB Move From Entry VSID X-form slbmfee: SLB Move From Entry ESID X-form slbfee: SLB Find Entry ESID slbsync: SLB Synchronize Based-on: <20220614163018.39819-1-leandro.lup...@eldorado.org.br> Lucas Coutinho (9): target/ppc: Move slbie to decodetree target/ppc: Move slbieg to deco

[PATCH 07/11] target/ppc: Move slbmfev to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 12 target/ppc/translate/storage-ctrl

[PATCH 02/11] target/ppc: add macros to check privilege level

2022-06-15 Thread Lucas Coutinho
From: Matheus Ferst Equivalent to CHK_SV and CHK_HV, but can be used in decodetree methods. Signed-off-by: Matheus Ferst Signed-off-by: Lucas Coutinho --- target/ppc/translate.c | 21 + target/ppc/translate/fixedpoint-impl.c.inc | 7 ++- 2 files

[PATCH 11/11] target/ppc: Implement slbiag

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 1 + target/ppc/insn32.decode | 4 +++ target/ppc/mmu-hash64.c | 27 target/ppc/translate/storage-ctrl-impl.c.inc | 14 ++ 4 files changed, 46

[PATCH 06/11] target/ppc: Move slbmte to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 14 -- target/ppc/translate/storage-ctrl

[PATCH 01/11] target/ppc: receive DisasContext explicitly in GEN_PRIV

2022-06-15 Thread Lucas Coutinho
From: Matheus Ferst 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. Signed-off-by: Matheus Ferst Signed-off-by: Luca

[PATCH 09/11] target/ppc: Move slbfee to decodetree

2022-06-15 Thread Lucas Coutinho
Signed-off-by: Lucas Coutinho --- target/ppc/helper.h | 2 +- target/ppc/insn32.decode | 2 ++ target/ppc/mmu-hash64.c | 2 +- target/ppc/translate.c | 26 --- target/ppc/translate/storage-ctrl

[PATCH] target/ppc: Replicate Double->Single-Precision result

2022-03-16 Thread Lucas Coutinho
Power ISA v3.1 formalizes the previously undefined result in words 1 and 3 to be a copy of the result in words 0 and 2. This affects: xvcvsxdsp, xvcvuxdsp, xvcvdpsp. And the previously undefined result in word 1 to be a copy of the result in word 0. This affects: xscvdpsp. Signed-off-by: Lucas