Bug 768

Summary: fast emulation traps with trap address based on PO and XO
Product: Libre-SOC's first SoC Reporter: Jacob Lifshay <programmerjake>
Component: Source CodeAssignee: Luke Kenneth Casson Leighton <lkcl>
Status: CONFIRMED ---    
Severity: enhancement CC: libre-soc-bugs, programmerjake
Priority: ---    
Version: unspecified   
Hardware: Other   
OS: Linux   
NLnet milestone: --- total budget (EUR) for completion of task and all subtasks: 0
budget (EUR) for this task, excluding subtasks' budget: 0 parent task for budget allocation:
child tasks for budget allocation: The table of payments (in EUR) for this task; TOML format:

Description Jacob Lifshay 2022-01-26 22:32:34 GMT
as discussed in meeting -- todo add more details

targeted speed: as fast as a function call
Comment 1 Jacob Lifshay 2022-01-26 22:34:26 GMT
ideas: hw swap-out caller-saved regs so interrupt handler can just be a c function
Comment 2 Luke Kenneth Casson Leighton 2022-01-26 22:45:15 GMT
(In reply to Jacob Lifshay from comment #1)
> ideas: hw swap-out caller-saved regs so interrupt handler can just be a c
> function

paul mentioned something about the e300? how it was a software-emulated
MMU and consequently there was a bit in the MSR you could set which
enabled swapping at exception time of the top 4 GPRs into SPRs *in addition*
to SRR0/1