projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
00b5c7b
)
target/i386: Use aesdec_IMC
author
Richard Henderson
<richard.henderson@linaro.org>
Fri, 2 Jun 2023 09:05:37 +0000
(
02:05
-0700)
committer
Richard Henderson
<richard.henderson@linaro.org>
Sat, 8 Jul 2023 06:30:18 +0000
(07:30 +0100)
This implements the AESIMC instruction.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
target/i386/ops_sse.h
patch
|
blob
|
history
diff --git
a/target/i386/ops_sse.h
b/target/i386/ops_sse.h
index 0a37bde5955bbfea17dc42a850cb85ce171d462b..893913ebf806a0be1683a6dc7ade3b7be395638e 100644
(file)
--- a/
target/i386/ops_sse.h
+++ b/
target/i386/ops_sse.h
@@
-2215,15
+2215,10
@@
void glue(helper_aesenclast, SUFFIX)(CPUX86State *env, Reg *d, Reg *v, Reg *s)
#if SHIFT == 1
void glue(helper_aesimc, SUFFIX)(CPUX86State *env, Reg *d, Reg *s)
{
-
int i
;
-
Reg tmp = *s
;
+
AESState *ad = (AESState *)&d->ZMM_X(0)
;
+
AESState *st = (AESState *)&s->ZMM_X(0)
;
- for (i = 0 ; i < 4 ; i++) {
- d->L(i) = bswap32(AES_imc[tmp.B(4 * i + 0)][0] ^
- AES_imc[tmp.B(4 * i + 1)][1] ^
- AES_imc[tmp.B(4 * i + 2)][2] ^
- AES_imc[tmp.B(4 * i + 3)][3]);
- }
+ aesdec_IMC(ad, st, false);
}
void glue(helper_aeskeygenassist, SUFFIX)(CPUX86State *env, Reg *d, Reg *s,