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

tmp test #564

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/cpu/difftest/ref.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,16 @@ void difftest_virtual_interrupt_is_hvictl_inject(bool virtualInterruptIsHvictlIn

void difftest_non_reg_interrupt_pending(void *nonRegInterruptPending) {
memcpy(&cpu.non_reg_interrupt_pending, nonRegInterruptPending, sizeof(struct NonRegInterruptPending));
printf("Attention: difftest_non_reg_interrupt_pending\n");
printf("platform_irp_meip: %d\n", cpu.non_reg_interrupt_pending.platform_irp_meip);
printf("platform_irp_mtip: %d\n", cpu.non_reg_interrupt_pending.platform_irp_mtip);
printf("platform_irp_msip: %d\n", cpu.non_reg_interrupt_pending.platform_irp_msip);
printf("platform_irp_seip: %d\n", cpu.non_reg_interrupt_pending.platform_irp_seip);
printf("platform_irp_stip: %d\n", cpu.non_reg_interrupt_pending.platform_irp_stip);
printf("platform_irp_vseip: %d\n", cpu.non_reg_interrupt_pending.platform_irp_vseip);
printf("platform_irp_vstip: %d\n", cpu.non_reg_interrupt_pending.platform_irp_vstip);
printf("lcofi_req: %d\n", cpu.non_reg_interrupt_pending.lcofi_req);
printf("Attention finish\n");
}

void difftest_enable_debug() {
Expand Down