diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-21 17:41:08 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-21 17:41:08 +0100 |
| commit | 6676fe3b3b968dc4ef2486df7aeffc7ac4f88b45 (patch) | |
| tree | 323a5ea8e0f8ed481ac26f2862c1980a4368d423 | |
| parent | 1d85580fbc0885b2d921d4c0468632e4331507ec (diff) | |
| download | box64-6676fe3b3b968dc4ef2486df7aeffc7ac4f88b45.tar.gz box64-6676fe3b3b968dc4ef2486df7aeffc7ac4f88b45.zip | |
[DYNAREC] Added 0F 2E/2F opcodes
| -rwxr-xr-x | src/dynarec/dynarec_arm64_0f.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/dynarec/dynarec_arm64_0f.c b/src/dynarec/dynarec_arm64_0f.c index 92f192f6..d538e42e 100755 --- a/src/dynarec/dynarec_arm64_0f.c +++ b/src/dynarec/dynarec_arm64_0f.c @@ -27,7 +27,7 @@ #define GETGX(a) \ gd = ((nextop&0x38)>>3)+(rex.r<<3); \ a = sse_get_reg(dyn, ninst, x1, gd) -#define GETEX(a) \ +#define GETEX(a, D) \ if(MODREG) { \ a = sse_get_reg(dyn, ninst, x1, nextop&7+(rex.b<<3)); \ } else { \ @@ -155,6 +155,30 @@ uintptr_t dynarec64_0F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int nin } break; + case 0x2E: + // no special check... + case 0x2F: + if(opcode==0x2F) {INST_NAME("COMISS Gx, Ex");} else {INST_NAME("UCOMISS Gx, Ex");} + SETFLAGS(X_ALL, SF_SET); + nextop = F8; + GETGX(v0); + if(MODREG) { + s0 = sse_get_reg(dyn, ninst, x1, nextop&7); + } else { + parity = getedparity(dyn, ninst, addr, nextop, 2, 0); + s0 = fpu_get_scratch(dyn); + if(parity) { + addr = geted(dyn, addr, ninst, nextop, &ed, x1, &fixedaddress, 0xfff<<3, 3, rex, 0, 0); + VLDR32_U12(s0, ed, fixedaddress); + } else { + GETED(0); + VMOVQSfrom(s0, 0, ed); + } + } + FCMPS(v0, s0); + FCOMI(x1, x2); + break; + #define GO(GETFLAGS, NO, YES, F) \ READFLAGS(F); \ GETFLAGS; \ |