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

More accurate cycle emulation for DIVS/DIVU needed? #67

Open
marhel opened this issue Feb 10, 2016 · 0 comments
Open

More accurate cycle emulation for DIVS/DIVU needed? #67

marhel opened this issue Feb 10, 2016 · 0 comments
Labels

Comments

@marhel
Copy link
Owner

marhel commented Feb 10, 2016

Decide if a more accurate emulation of cycles taken for DIVS/DIVU operations are needed. For now we just consume a fixed worst-case amount of cycles for DIVS/DIVU, but for example EASy68k uses an algorithm from an old usenet post that uses analysis on the operands to determine the number of cycles taken.

There's also the corresponding EASy68k implementation (note that this is not the official sources, which as far as I can see are only available as a zip through the EASy68k website, but at a glance it's the same implementation)

We need to decide if we care about more precise cycle counts for DIVS/DIVU, versus raw performance (more accurate emulation is slower), and if we do that, how to handle the fact that some Musashi timings then will no longer match (unless we also patch Musashi). Some exception-rule in the QC-tests, perhaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant