New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lightning+Lightrec updates and other optimizations #862
Open
ZachCook
wants to merge
14
commits into
libretro:master
Choose a base branch
from
ZachCook:libretro-dynarec-backup
base: master
Could not load branches
Branch not found: {{ refName }}
Could not load tags
Nothing to show
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2fd636e
git subrepo pull (merge) deps/lightning
ZachCook 8df60c2
lightrec: update include files and folder
ZachCook 3bb725c
lightrec: Adjust to lightrec API changes and HAVE_MMAP for lightning
ZachCook 91e458c
Change GTE to allow using lightrec's registers
ZachCook 82d0ae7
lightrec: attempt memfd and hugepages for ram mmap
ZachCook b261d6c
Lightrec: enable codebuffer option, fix Windows, move/cleanup headers
ZachCook 70a6828
add cpu_timestamp hack to so lightrec tracks more cycles
ZachCook 6f5e72d
improve lightrec debugging by allowing threaded recompiler in debug b…
ZachCook be36b39
clean and optimize loop around lightrec's execution functions
ZachCook 8814bcb
Fix eventcycles, add SPU Samples, allows much better performance
ZachCook 3ad17a1
support MainRAM at 0x0, use INVALID_PTR instead of NULL
ZachCook 97c4d5e
Remove "Cycle Timing Check" (execute_one) dynarec option, use new lig…
ZachCook ffa8400
Fix Windows and cleanup error handling in init_mmap
ZachCook c41b8a7
git subrepo pull deps/lightrec
ZachCook File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
GNU lightning is a library to aid in making portable programs | ||
that compile assembly code at run time. For more information, | ||
look at the info documentation. | ||
|
||
For help building lightning, see README-hacking. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1 @@ | ||
* Validate that divrem in jit_x86-cpu.c is not modifying | ||
the non result arguments. This is not verified by clobber.tst, | ||
as it only checks registers not involved in the operation | ||
(because it does not know about values being set as input | ||
for the the operation). | ||
|
||
* Write a simple higher level language implementation generating | ||
jit with lightning, that could be some lisp or C like language. | ||
|
||
* rerun ./configure --enable-devel-get-jit-size and regenerate | ||
the related jit_$arch-sz.c for the ports where nodata is | ||
meaningful: | ||
hppa (done) | ||
i586 (done) | ||
ia64 | ||
mips o32 (done) | ||
mips n32 | ||
mips n64 | ||
powerpc 32 (done) | ||
powerpc 64 (done) | ||
ppc | ||
s390x (done) | ||
sparc (done) | ||
x86_64 (done) | ||
Missing ones are due to no longer (remote) access to such hosts | ||
and may be broken with jit_set_data(..., JIT_DISABLE_DATA). | ||
(ia64 hp-ux or linx), (irix mips for 32 or 64 abi), and | ||
(darwin ppc). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You shouldn't have to compile TLSF since you disabled the code buffer support (ENABLE_CODE_BUFFER=0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ENABLE_CODE_BUFFER=1 was set in 3012b97 of this PR, there were many changes squashed together, and it could maybe use even more to make this more clear maybe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes I saw it after my message. I guess this change should be squashed into 3012b97 then.