Tracing and pic32 #41
Open
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.
This pull request consists of eight commits to be applied in series.
(1) This change adds a new feature: option "-d instr". It enables printing of all executed MIPS instructions to log file. It also prints the modified cpu registers, TLB entries and memory load/store transactions. The information is printed in the following format:
(2) Make the CPU clock frequency configurable per platform. Currently the clock rate for all MIPS platforms is fixed at 100MHz. Need to make it 40MHz for pic32mx7.
(3) When WAIT instruction is executed with interrupts disabled, the processor is essentially suspended forever. Terminate the simulation in this case.
(4) For TLBWR instruction, the generated random index value has been not quite random and did not take into account the Wired register value. Fixed.
(5) Added support for external interrupt controller mode (EIC). Required for pic32.
(6) Added two processor variants: M4K and microAptivUP. Needed for pic32mx and pic32mz simulation.
(7) Added two machine platforms: Microchip pic32mx7 and pic32mz microcontrollers. Several board types supported for each platform:
(8) Ethernet device implemented for pic32mz.
For examples of real pic32 applications running on QEMU, see page: https://github.com/sergev/qemu/wiki