Commit 8f9c7f7
committed
src/mte_tag: tighten the first stage page table conditions for MTAG
Quite often loader or other piece of code might read code pages. If a code
page is set as MTAG=1, then those loads (to code page) will look for tags.
This change clarifies in specification that loads/stores to pages marked
as executable always generate unchecked memory accesses.
If if memory tagging is not enabled for execution environment then `MTAG`
bit is ignored. This allows for setting up tagging and enabling/disabling
on sampling basis (without asking OS to clear to the bit when tagging is
disabled)
Signed-off-by: Deepak Gupta <debug@rivosinc.com>1 parent a208744 commit 8f9c7f7
1 file changed
+12
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
359 | 358 | | |
360 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
361 | 363 | | |
362 | 364 | | |
363 | 365 | | |
364 | | - | |
| 366 | + | |
365 | 367 | | |
366 | | - | |
| 368 | + | |
367 | 369 | | |
368 | 370 | | |
369 | | - | |
370 | | - | |
| 371 | + | |
| 372 | + | |
371 | 373 | | |
372 | 374 | | |
373 | | - | |
374 | | - | |
| 375 | + | |
375 | 376 | | |
376 | 377 | | |
377 | 378 | | |
| |||
0 commit comments