SH-2E CPU implementation#104
Conversation
The array goes into BSS and will be zeroed anyway.
No need to worry about updating DEVICE_TYPE_COUNT when adding new devices.
…omputing for MOVI instructions
…g, add checks for alignment and add basic accounting
This commit makes the INTC as its own independent device and also changes the SH-2E CPU step behaviour. Now the CPU step mimicks one step in the CPU state automaton instead of executing one instruction per step.
Added reference between SH-2E cpu and interrupt controller. Changed the resets behaviour to be similiar to interrupt sources. Also added some example configuration to the msim.conf file.
|
Maybe just one final bit, I would rather see I know they don't do it like that even in the manual, but it's a documentation bit that does not cost anything. Similarly for cases with |
|
The physmem endianness is quite intrusive, I would separate it to another PR. Things generally work in this PR, so I think the refactor can go in separately. |
|
I removed the last commit regarding the physmem refactor and I just left the fixes to the peripheral devices. I'll make another PR after we merge this one, as the physmem changes would also affect all the PRs that are open right now. |
This pull request adds support for the SH-2E CPU to MSIM.
Main changes include:
Clang format changesChanges added in the second batch: