linux, rvy: add default QEMU -cpu flags - #502
Conversation
arichardson
left a comment
There was a problem hiding this comment.
Can you do this globally instead of just for Linux?
f751f4f to
2d7c30c
Compare
@arichardson I have now moved this to run_qemu's init. We can also probably remove this check in favour of the change in this PR |
e9d6832 to
b782a30
Compare
It looks like we can't remove the check and the corresponding so that |
arichardson
left a comment
There was a problem hiding this comment.
Can you place this in the qemu options init instead?
It just needs to be updated to use
xtarget.is_experimental_cheri093_std(self.config) instead of just checking the command line flag.
And yes we can use the generic CPU instead of a730
If the problem is that the config argument is not available there we could probably just add it. |
I think that's not even needed here. I've been running CHERI-Linux without that flag and it picks the correct QEMU's suffix |
That's what I tried first thing, but
|
b782a30 to
bfee89f
Compare
Yeah that was the issue. I just added it now (in the last push) as an argument if that's what you meant? |
f3053fe to
674f859
Compare
Currently the launch target will add -cpu codasip-a730 only if --riscv-cheri-isa experimental_std093 is passed, and will discard -cpu if not. Discarding -cpu will result in a CHERI-enabled RVY QEMU, but with extended CHERI flags/features disabled such as cheri_pte, cheri_levels, etc, in the QEMU 7.1 branch. This PR fixes this by: 1- Always pass -cpu rv64,cheri_pte,cheri_levels for RVY by default, without having to check for the --riscv-cheri-isa flag, by also relying on the cross compilation target. 2- Use a more generic -cpu rv64 and not codasip-a730.
674f859 to
a6af0fc
Compare
Currently the launch target will add -cpu codasip-a730 only if --riscv-cheri-isa experimental_std093 is passed, and will discard -cpu if not. Discarding -cpu will result in a CHERI-enabled RVY QEMU, but with extended CHERI flags/features disabled such as cheri_pte, cheri_levels, etc, in the QEMU 7.1 branch.
This PR fixes this by:
1- Always pass -cpu rv64,cheri_pte,cheri_levels for CHERI-Linux by default, without having to check for the --riscv-cheri-isa flag.
2- Use a more generic -cpu rv64 and not codasip-a730.