Commit Graph

118 Commits

Author SHA1 Message Date
Mio a0e119c6f0
Format code 2022-08-31 23:27:24 +08:00
lazymio a63002872f
Merge pull request #1688 from relapids/tricore_leak
Fix memory leaks in TriCore target. (#1681)
2022-08-31 22:07:10 +08:00
relapids e15173dd26 Fix memory leaks in TriCore target. 2022-08-15 21:26:29 -07:00
relapids a3ccbf2e59 Fix memory leak in PPC target. 2022-08-15 18:57:10 -07:00
lazymio ffb047fe37
Merge pull request #1668 from Yu3H0/fix_tricore_pc_problem
fix issue 1663:tricore pc don't move
2022-07-26 22:08:43 +08:00
Yu3h0 ca6a8b4cac fix issue 1663:tricore pc don't move 2022-07-26 13:41:13 +08:00
mio 6db6790ec2 Merge remote-tracking branch 'zachesez/ppc_cr_read_fix' into dev 2022-07-23 20:46:40 +08:00
Zach Szczesniak 2b25867e4b Fixed endianness when writing PPC32 CR register. 2022-07-20 18:31:13 -04:00
Duncan Ogilvie 22ea31cdf7 Fail when VEX.L is set in SSE instructions (AVX is not supported)
Closes #1656
2022-07-20 13:48:31 +02:00
lazymio ba50035830
Format code 2022-05-23 12:30:44 +02:00
lazymio 17fa839a56
Eliminate more warnings in s390x 2022-05-21 00:07:20 +02:00
lazymio 82d1c9e925
Eliminate warnings 2022-05-21 00:02:29 +02:00
lazymio 9167ab8671
Set riscv_get_pc for uc->get_pc 2022-05-21 00:02:22 +02:00
Ondřej Ondryáš f3b776dd7d Support reads and writes over all Arm SIMD registers 2022-05-20 00:30:11 +02:00
lazymio b827ebf4c3
Format code 2022-05-07 00:30:18 +02:00
lazymio 345b63ee96
Only exit TB if pc is within the memory range 2022-05-07 00:16:31 +02:00
Eric Poole cfee2139a0
TriCore Support (#1568)
* TriCore Support

python sample

* Update sample_tricore.py

Correct attribution

* Update sample_tricore.py

Fixed byte code to execute properly.

* Update sample_tricore.py

Removed testing artifact

* Added tricore msvc config-file.h

* Added STATIC to tricore config and added helper methods to symbol file generation.

* Update op_helper.c

Use built in crc32

* Fix tricore samples and small code blocks are now handled properly

* Add CPU types

* Generate bindings

* Format code

Co-authored-by: lazymio <mio@lazym.io>
2022-04-29 23:11:34 +02:00
lazymio b136f08f2d
Check CPU model for uc_ctl 2022-04-16 17:49:47 +02:00
shuffle2 2912cd1e29
fix rust bindings build on windows (#1584)
Refine rust bindings.
2022-04-16 13:40:04 +02:00
lazymio e3d0a33ab8
Fix BE32 usermode address XOR 2022-04-05 11:55:58 +02:00
lazymio 2f113b11d1
Fix symbol clash on bunlded static libs 2022-04-04 11:24:59 +02:00
Ilya Leoshkevich 7de130a5d7 s390x/tcg: Fix BRASL and BRCL with large negative offsets
This is a backport of the following upstream commits:
- commit fc3dd86a290a ("s390x/tcg: Fix BRASL with a large negative offset")
- commit 16ed5f14215b ("s390x/tcg: Fix BRCL with a large negative offset")

Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
2022-03-17 14:23:57 +01:00
lazymio 9f62c71094
Sync PC for SYS instruction hook 2022-02-27 15:30:27 +01:00
lazymio e5207a1363
Implement UC_HOOK_INSN for aarch64 MRS/MSR/SYS/SYSL 2022-02-27 15:28:31 +01:00
lazymio d946114dfe
Set EFLAGS correctly on startup 2022-02-25 22:44:42 +01:00
lazymio 84e796494f
Format code 2022-02-25 22:24:25 +01:00
lazymio 8d9ca1ce84
Format 2022-02-17 10:37:34 +01:00
lazymio 27ef63cc8d
Add UC_PPC_REG_CR 2022-02-15 22:07:53 +01:00
lazymio e382ca102a
Fix the regression bug 2022-02-13 09:52:00 +01:00
lazymio 05b9a021dc
Merge pull request #1453 from scribam/reg-read-write-fpscr
unicorn_arm: add reg_read/write operations for FPSCR and FPSID
2022-02-13 09:02:32 +01:00
lazymio 52e0963cc7
Backward compatibility to enable full 64bits address space 2022-02-12 22:54:21 +01:00
lazymio 81eb7da837
Backward compatibility for c13_c0_3 2022-02-12 22:31:10 +01:00
lazymio 3c4477d622
Fix another undefined shift found by sanitizer 2022-02-12 19:57:19 +01:00
lazymio 93c602ead1
FIx anohter undefined shift 2022-02-12 19:47:51 +01:00
lazymio e38b1c8af3
Fix the undefined shift 2022-02-12 19:37:32 +01:00
lazymio e548cd9eb1
Fix the undefined shift 2022-02-12 18:22:56 +01:00
lazymio c2bb5c8838
Fix ns and s in cp reg encoding 2022-02-12 14:29:42 +01:00
lazymio 58fc952230
Remove armeb-softmmu and aarch64eb-softmmu 2022-02-12 14:15:54 +01:00
lazymio f511d4a807
Also return error for context read/write 2022-02-11 22:19:03 +01:00
lazymio 3e6665db00
Implement coprocessor register read/write for arm64 2022-02-11 22:13:01 +01:00
lazymio 8bc1489210
Implement coprocessor register read/write for arm 2022-02-11 21:45:37 +01:00
Ilya Leoshkevich ad984b9366 s390x TCG shift instruction fixes
Cherry-pick the following upstream commits:

521130f267 target/s390x: Fix SLDA sign bit index
57556b28af target/s390x: Fix SRDA CC calculation
df103c09bc target/s390x: Fix cc_calc_sla_64() missing overflows
6da170beda target/s390x: Fix shifting 32-bit values for more than 31 bits
2022-01-27 13:15:54 +01:00
mio 7095605607
Merge branch 'dev' into systemz 2022-01-18 21:10:55 +01:00
lazymio ea9c7425b0
Fix the wrong PC when arm translation fectches unmapped memory
This behavior keeps the same with Unicorn1, though, different from arm doc
2022-01-16 16:42:38 +01:00
lazymio 459a595a98
Merge branch 'dev' into s390x
Mostly for bindings update.
2022-01-15 20:56:39 +01:00
lazymio 6ed2214399
Rebuilt hflags when swithing modes
Or we may get the wrong mode during translation
2022-01-14 19:37:48 +01:00
lazymio 33afdcf872
Save CC at the end of emulation 2022-01-10 21:48:03 +01:00
lazymio 9ac796531a
Don't cache S390SkeyState and S390SkeysClass 2022-01-10 19:18:52 +01:00
lazymio 980eae7f44
Sync PC at the end of emulation 2022-01-10 15:45:56 +01:00
lazymio 441afe17e6
Add psw.mask register 2022-01-10 15:34:04 +01:00