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

Warning messages about missing CSRs from new macro code in arch_test.h #336

Closed
ssecatch-w opened this issue Apr 26, 2023 · 3 comments · Fixed by #352
Closed

Warning messages about missing CSRs from new macro code in arch_test.h #336

ssecatch-w opened this issue Apr 26, 2023 · 3 comments · Fixed by #352

Comments

@ssecatch-w
Copy link

There's no explanation about how they should be set.
Ie, if I create them and set them to empty, what does this do to the test sequence? Is this acceptable functionality?

riscv-test-suite/env/arch_test.h: Assembler messages:
riscv-test-suite/env/arch_test.h:749: Warning: RVMODEL_CLR_MSW_INT not defined. Executing this will end test. Define an empty macro to suppress this warning
riscv-test-suite/env/arch_test.h:753: Warning: RVMODEL_CLR_MTIMER_INT not defined. Executing this will end test. Define an empty macro to suppress this warning
...

arch_test.h:
//==============================================================================
// Helper macro to set defaults for undefined interrupt set/clear
// macros. This is used to populated the interrupt vector table
//==============================================================================
//****************************************************************
#define RVTEST_DFLT_INT_HNDLR j cleanup_epilogs
//Mmode interrupts
#ifndef RVMODEL_SET_MSW_INT
.warning "RVMODEL_SET_MSW_INT not defined. Executing this will end test. Define an empty macro to suppress this warning"
#define RVMODEL_SET_MSW_INT RVTEST_DFLT_INT_HNDLR
#endif
...

@allenjbaum
Copy link
Collaborator

allenjbaum commented Apr 26, 2023 via email

@davidharrishmc
Copy link
Contributor

This issue threw me and my students because riscof suddenly started producing lots of warnings.

To be very concrete, I've made the warnings go away by adding the following #defines before the #endif in the following two files:

riscof/sail_cSim/env/model_test.h
riscof/spike/env/model_test.h

#define RVMODEL_CLR_MSW_INT
#define RVMODEL_CLR_MTIMER_INT
#define RVMODEL_CLR_MEXT_INT
#define RVMODEL_SET_SSW_INT
#define RVMODEL_CLR_SSW_INT
#define RVMODEL_CLR_STIMER_INT
#define RVMODEL_CLR_SEXT_INT
#define RVMODEL_SET_VSW_INT
#define RVMODEL_CLR_VSW_INT
#define RVMODEL_CLR_VTIMER_INT
#define RVMODEL_CLR_VEXT_INT

@allenjbaum
Copy link
Collaborator

allenjbaum commented May 15, 2023 via email

Abdulwadoodd added a commit to Abdulwadoodd/riscv-arch-test that referenced this issue May 16, 2023
fixes riscv-non-isa#336

Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
@pawks pawks closed this as completed in 6c9e40a Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants