Commit Graph

29 Commits

Author SHA1 Message Date
Robert Xiao d7a806c026 Reformat code with format.sh 2023-06-16 15:23:41 -07:00
mio 3d5b2643f0
Support demand paging via closures and seh
Reverts 12a79192ee which exploits normal tcg mechanism

This uses a trampoline to pass extra data to seh handlers
2023-06-10 14:04:56 +02:00
mio a25adf84f0
Rename flags to avoid confusion 2023-01-28 22:18:39 +01:00
mio 12a79192ee
Demand paging on Windows 2023-01-28 22:04:43 +01: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 defb0135fe
MSVC doesn't really have atomic64 2022-02-23 20:22:54 +01:00
Nguyen Anh Quynh b042a6a01d add missing files 2021-12-06 04:28:13 +08:00
Nguyen Anh Quynh aaaea14214 import Unicorn2 2021-10-03 22:14:44 +08:00
lazymio 644da9babc
Fix setjmp/longjmp on native Windows (#1331)
* Add setjmp wrapper

* Add to projects

* Use wrapper on x64

* Always build on x64 and exclude on win32

* Fix signature

* Add comments

* Add comments for os-win32.h

* Add extern decleration

* Support cmake Windows build

* Fix for MinGW
2020-09-22 02:02:43 +08:00
Audrey Dutcher 4fd2f8c524 Final tweaks to MSVC build (#1139)
* Quote paths in msvc postbuildevent scripts

* Update MSVC readme with some new advice
2019-09-07 10:46:28 +08:00
Fish 626d72d6df Two fixes to get unicorn build better with MSVC. (#1136)
* Change MSVC keywords.

typename, class, and class are all keywords for MSVC. Adding a suffix for
all of them allows a successful compilation under VC 2017 (15.9).

* Switch from /ZI to /Zi to avoid crashes at longjmp in debug builds.
2019-09-05 00:53:37 +08:00
Luke Usher 1c1eecd863 msvc: Use default platform toolset (#1091) 2019-09-05 00:52:40 +08:00
xorstream 75bab051f8 Added MSVC support for arm64eb. 2017-04-25 14:23:58 +10:00
xorstream 7f1d7094e6 Msvc readme.txt updated (#803)
* Added armbe support to MSVC branch.

* Updated readme.txt to remove notes about winsock usage.
2017-04-21 15:54:53 +08:00
xorstream d167f1a27a Added armbe support to MSVC branch. (#801) 2017-04-21 15:26:21 +08:00
vardyh 7f9251511e MSVC port (vardyh) (#746)
* unicorn: use waitable timer to implement usleep() on Windows

Signed-off-by: vardyh <vardyh.dev@gmail.com>

* atomic: implement barrier() for msvc

Signed-off-by: vardyh <vardyh.dev@gmail.com>
2017-02-07 21:31:35 +08:00
xorstream 3151604d4d Changes to reduce size of libs (#741)
* Fix for MIPS issue.

* Sparc support added.

* M68K support added.

* Arm support ported.

* Fix issue with VS2015 shlobj.h file

* Arm issue fix.

* Finalise MSVC port.

* Changes to reduce size of libs
2017-01-25 20:59:32 +08:00
Nguyen Anh Quynh 2853b4b1cd msvc: do not distribute private header files 2017-01-25 09:09:13 +08:00
Nguyen Anh Quynh 978b803d04 update docs for MSVC port 2017-01-24 23:20:19 +08:00
xorstream 2a941e3efb Finalise MSVC port (#739)
* Fix for MIPS issue.

* Sparc support added.

* M68K support added.

* Arm support ported.

* Fix issue with VS2015 shlobj.h file

* Arm issue fix.

* Finalise MSVC port.
2017-01-24 22:09:33 +08:00
xorstream 8e45102b43 Arm support ported. (#736)
* Fix for MIPS issue.

* Sparc support added.

* M68K support added.

* Arm support ported.

* Fix issue with VS2015 shlobj.h file
2017-01-23 23:30:57 +08:00
Nguyen Anh Quynh 590d1d06e0 update msvc\.gitignore 2017-01-23 21:30:15 +08:00
xorstream 2695a0ffe8 M68K support added. (#735)
* Fix for MIPS issue.

* Sparc support added.

* M68K support added.
2017-01-23 14:40:02 +08:00
xorstream a40921ce32 Sparc support added. (#734)
* Fix for MIPS issue.

* Sparc support added.
2017-01-23 13:29:41 +08:00
xorstream 19a6dc948f Merge remote-tracking branch 'unicorn-engine/msvc' into msvc 2017-01-23 11:14:32 +11:00
Nguyen Anh Quynh ce35b4e381 make.sh: compile before copy autogen files for msvc_update_genfiles 2017-01-23 00:04:55 +08:00
xorstream 72a497bc14 Added MIPS support and projects for all samples. 2017-01-23 01:05:08 +11:00
Nguyen Anh Quynh b4163a6571 msvc: add .gitignore 2017-01-22 12:41:18 +08:00
xorstream 757e4054c0 Moved ./bindings/msvc_native into ./msvc (#726)
* Changed some MSVC compatibility defines based on MSVC version.

* Added prebuild_script.bat to remove leftover configure generated files before building.

Also added project files and MSVC copies of configure generated files for all supported CPUs.

* Moved ./bindings/msvc_native into ./msvc

* Remove old project dir.
2017-01-22 13:26:19 +08:00