Takacs, Philipp
e96ac42b2e
Remove MMU hacks
...
Unicorn has included some ugly hacks to provide a envirement where vaddr == paddr.
These hacks where to use the full 64 bit mappings on x86 without init the mmu
and some memory redirect for MIPS.
The UC_TLB_CPU mode defaults to vaddr == paddr, therfor these hacks aren't
required anymore.
2023-03-28 14:02:17 +02:00
Takacs, Philipp
e25419bb2d
add virtuall tlb
...
this virtuall tlb allows to use mmu indipendent of the architectur
2023-03-28 13:50:11 +02:00
Takacs, Philipp
901034577a
i386 call internal helper on special porpese register write
...
Some registers writes have side effects. i.e. write to cr3 flush the tlb,
if the PG bit is set.
2023-03-28 13:50:11 +02:00
Takacs, Philipp
f2eb1f4711
i386 mmu hack: Allow emulate usermode without mmu
...
This basicaly mappes virtual addresses to physical addresses 1:1 when
the mmu is disabled in the cpu. So you can use the full 64 bit addressspace
without required to configure the mmu.
2023-03-28 13:50:11 +02:00
Takacs, Philipp
b7b1a4d6b4
difference between stop_request and quit_request
...
quit_request is for internal use. This means the IP register was updated and
qemu needs to rebuild the translation blocks.
stop_request is set by the user (uc_emu_stop) to indecate that unicorn sould
stop emulating.
2023-03-07 14:38:49 +01:00
Takacs, Philipp
14404ef04b
[x86] don't hardcode cpuid results
...
The cpuid results are set by the selected cpu.
CLOSES #1787
2023-02-27 12:34:38 +01:00
133504b504
Fix wrong IP in x86_16 because of cs_base not substracted
2023-02-20 20:21:56 +01:00
9c5358c759
Respect QEMU ZMM_Q to work on big endian hosts
2022-10-28 17:37:02 +02: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
b827ebf4c3
Format code
2022-05-07 00:30:18 +02:00
345b63ee96
Only exit TB if pc is within the memory range
2022-05-07 00:16:31 +02:00
d946114dfe
Set EFLAGS correctly on startup
2022-02-25 22:44:42 +01:00
d854e22301
Add x87 FPU registers #1524
2022-01-04 21:12:12 +01:00
085ee07c73
No more hard-coded cpu models
2021-12-30 01:05:10 +01:00
ef6f8a2427
Fix x86 CPUID
2021-12-22 23:39:41 +01:00
7bb756249a
Better design of cpuid instruction hook
2021-12-22 20:36:56 +01:00
87a391d549
Inline uc_tracecode when there is only exactly one hook
2021-11-21 16:44:39 +01:00
640251e1aa
Leave out size parameter in callback
2021-11-09 00:21:34 +01:00
435ac71f47
Support changing cpu model for x86
2021-11-04 19:10:29 +01:00
6b5529fcb7
Merge pull request #1458 from bet4it/patch
...
Port some patches from Unicorn1 to Unicorn2
2021-11-03 20:59:42 +01:00
9818840f4e
Add tests for UC_HOOK_TCG_OPCODE
2021-11-03 20:56:45 +01:00
bcf85be86d
Add a new hook type UC_HOOK_TCG_OPCODE
2021-11-03 01:46:24 +01:00
Bet4
aaf340d9e4
Merge branch 'dev' into patch
2021-11-02 18:36:22 +08:00
3dd2e0f95d
Basic implementation of uc_ctl
2021-11-01 00:39:36 +01:00
e62b0ef255
Add clang-format and format code to qemu code style
2021-10-29 12:44:49 +02:00
e695686c15
Remove AFL Integration by reverting
2021-10-26 11:22:21 +02:00
7ac7c23c12
Fix Windows build for AFL integration
2021-10-25 16:11:58 +02:00
1fa2eb688b
Fix UC_MODE_AFL and update config
2021-10-25 14:39:40 +02:00
dd7476a9bd
Initial import unicornafl
2021-10-25 00:51:16 +02:00
Sven Almgren
f27c6fa655
X86 instruction FTST was incorrectly overwriting ST0 instead of FT0 ( #1372 )
...
* X86 instruction FTST was incorrectly overwriting ST0 instead of FT0
* credits update
2021-10-12 08:41:57 +08:00
9d8a309fbf
Allow user to instrument cpuid instruction
2021-10-05 17:15:49 +02:00
bccc7f2fb7
Remove NULL tcg arg and add a test for sysenter
2021-10-04 18:50:42 +02:00
Nguyen Anh Quynh
aaaea14214
import Unicorn2
2021-10-03 22:14:44 +08:00