Skip to content
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

Fix several build issues if built with -DDYNAREC=Off #2021

Merged
merged 4 commits into from Jan 29, 2022
Merged

Conversation

Copy link
Contributor

@goshhhy goshhhy commented Jan 29, 2022

Summary

cyrix_load_seg_descriptor() touches codegen_flat_ds and codegen_flat_ss even if dynarec is disabled.
386_dynarec_ops.c is built even if dynarec is disabled, references many things, and is not needed in that configuration.
dma_page_write() calls update_tsc(), and while this isn't called if dynarec is disabled in software, the call is still built in if built with dynarec disabled.
pc_hard_reset_init() sets cycles_main, which only exists if build with dynarec.

these prevent the codebase from building if built with -DDYNAREC=Off.

this pull request fixes all of these.

Checklist

References

@goshhhy goshhhy changed the title x86seg.c: cyrix_load_seg_descriptor: don't use codegen variables if dynarec disabled Fix several build issues if built with DYNAREC=Off Jan 29, 2022
@goshhhy goshhhy changed the title Fix several build issues if built with DYNAREC=Off Fix several build issues if built with -DDYNAREC=Off Jan 29, 2022
@OBattler OBattler merged commit fe81385 into 86Box:master Jan 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants