[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 26/40] Add GEN_VXFORM_NOA macro for subsequent instr
From: |
Nathan Froyd |
Subject: |
[Qemu-devel] [PATCH 26/40] Add GEN_VXFORM_NOA macro for subsequent instructions. |
Date: |
Tue, 30 Dec 2008 19:10:08 -0800 |
Signed-off-by: Nathan Froyd <address@hidden>
---
target-ppc/translate.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index bade2c8..b8a7cab 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -6325,6 +6325,21 @@ GEN_VXFORM(vrlw, 2, 2);
GEN_VXFORM(vsl, 2, 7);
GEN_VXFORM(vsr, 2, 11);
+#define GEN_VXFORM_NOA(name, opc2, opc3) \
+ GEN_HANDLER(name, 0x04, opc2, opc3, 0x001f0000, PPC_ALTIVEC) \
+ { \
+ TCGv_ptr rb, rd; \
+ if (unlikely(!ctx->altivec_enabled)) { \
+ gen_exception(ctx, POWERPC_EXCP_VPU); \
+ return; \
+ } \
+ rb = gen_avr_ptr(rB(ctx->opcode)); \
+ rd = gen_avr_ptr(rD(ctx->opcode)); \
+ gen_helper_##name (rd, rb); \
+ tcg_temp_free_ptr(rb); \
+ tcg_temp_free_ptr(rd); \
+ }
+
#define GEN_VXFORM_SIMM(name, opc2, opc3) \
GEN_HANDLER(name, 0x04, opc2, opc3, 0x00000000, PPC_ALTIVEC) \
{ \
--
1.6.0.5
- [Qemu-devel] [PATCH 28/40] Add vupk{h,l}s{b,h} instructions., (continued)
- [Qemu-devel] [PATCH 28/40] Add vupk{h,l}s{b,h} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 40/40] Add vsumsws, vsum2sws, and vsum4{sbs, shs, ubs} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 36/40] Add vmsumuh{m,s} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 03/40] Add GEN_VXFORM macro for subsequent instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 23/40] Add vspltis{b,h,w} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 13/40] Add vsl{b,h,w} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 05/40] Add vavg{s,u}{b,h,w} instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 24/40] Add GEN_VXFORM_UIMM macro for subsequent instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 21/40] Add vsldoi instruction., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 30/40] Add vmsum{u,m}bm instructions., Nathan Froyd, 2008/12/30
- [Qemu-devel] [PATCH 26/40] Add GEN_VXFORM_NOA macro for subsequent instructions.,
Nathan Froyd <=
- [Qemu-devel] [PATCH 06/40] Add v{min, max}{s, u}{b, h, w} instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 33/40] Add vpks{h, w}{s, u}s, vpku{h, w}us, and vpku{h, w}um instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 07/40] Add GEN_VXRFORM{, 1} macros for subsequent instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 08/40] Add vcmpequ{b, h, w} and vcmpgt{s, u}{b, h, w} instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 19/40] Add vrl{b,h,w} instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 32/40] Add saturating arithmetic conversion functions for subsequent instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 14/40] Add vs{l,r}o instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 34/40] Add vpkpx instruction., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 17/40] Add m{f,t}vscr instructions., Nathan Froyd, 2008/12/31
- [Qemu-devel] [PATCH 35/40] Add vmh{,r}addshs instructions., Nathan Froyd, 2008/12/31
- Prev by Date:
[Qemu-devel] [PATCH 30/40] Add vmsum{u,m}bm instructions.
- Next by Date:
[Qemu-devel] [PATCH 06/40] Add v{min, max}{s, u}{b, h, w} instructions.
- Previous by thread:
[Qemu-devel] [PATCH 30/40] Add vmsum{u,m}bm instructions.
- Next by thread:
[Qemu-devel] [PATCH 06/40] Add v{min, max}{s, u}{b, h, w} instructions.
- Index(es):