SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
26
devel/angr/py-pyvex/patches/patch-pyvex_c_pyvex_c
Normal file
26
devel/angr/py-pyvex/patches/patch-pyvex_c_pyvex_c
Normal file
|
@ -0,0 +1,26 @@
|
|||
- match the guest with amd64-cx16-rdtscp-sse3-avx-avx2-bmi
|
||||
as the host and guest hardware capabilities much be equal for VEX to work
|
||||
- remove LZCNT from the guest as the host might not support it on OpenBSD
|
||||
|
||||
Index: pyvex_c/pyvex.c
|
||||
--- pyvex_c/pyvex.c.orig
|
||||
+++ pyvex_c/pyvex.c
|
||||
@@ -175,6 +175,10 @@ int vex_init() {
|
||||
#error "Unsupported host arch"
|
||||
#endif
|
||||
|
||||
+ // Set the host capabilities to match the guest as defined
|
||||
+ // in vex_prepare_vai().
|
||||
+ vai_host.hwcaps = 0xf60;
|
||||
+
|
||||
vta.archinfo_host = vai_host;
|
||||
|
||||
//
|
||||
@@ -222,7 +226,6 @@ static void vex_prepare_vai(VexArch arch, VexArchInfo
|
||||
case VexArchAMD64:
|
||||
vai->hwcaps = VEX_HWCAPS_AMD64_SSE3 |
|
||||
VEX_HWCAPS_AMD64_CX16 |
|
||||
- VEX_HWCAPS_AMD64_LZCNT |
|
||||
VEX_HWCAPS_AMD64_AVX |
|
||||
VEX_HWCAPS_AMD64_RDTSCP |
|
||||
VEX_HWCAPS_AMD64_BMI |
|
Loading…
Add table
Add a link
Reference in a new issue