@@ -2367,7 +2367,7 @@ function misaligned_is_atomic? {
23672367 body {
23682368 # if the hart doesn't support Misligned Atomicity Granules,
23692369 # then this misligned access is not atomic
2370- return false if MAX_MISALIGNED_ATOMICITY_GRANULE_SIZE == 0;
2370+ return false if MISALIGNED_MAX_ATOMICITY_GRANULE_SIZE == 0;
23712371
23722372 if (pma_applies?(PmaAttribute::MAG16, physical_address, N) &&
23732373 in_naturally_aligned_region?<128>(physical_address, N)) {
@@ -2434,7 +2434,7 @@ function read_memory {
24342434 # access isn't naturally aligned, but it still might be atomic if this hart supports
24352435 # Misliagned Atomicity Granules. We won't know that, though, until after translation since PMAs
24362436 # apply to physical addresses
2437- if (MAX_MISALIGNED_ATOMICITY_GRANULE_SIZE > 0) {
2437+ if (MISALIGNED_MAX_ATOMICITY_GRANULE_SIZE > 0) {
24382438 # sanity check that the implementation isn't expecting a Misaligned exception
24392439 # before an access/page fault exception (that would be an invalid config)
24402440 assert(MISALIGNED_LDST_EXCEPTION_PRIORITY == "low", "Invalid config: can't mix low-priority misaligned exceptions with large atomicity granule");
@@ -2758,7 +2758,7 @@ function write_memory {
27582758 # access isn't naturally aligned, but it still might be atomic if this hart supports
27592759 # Misliagned Atomicity Granules. We won't know that, though, until after translation since PMAs
27602760 # apply to physical addresses
2761- if (MAX_MISALIGNED_ATOMICITY_GRANULE_SIZE > 0) {
2761+ if (MISALIGNED_MAX_ATOMICITY_GRANULE_SIZE > 0) {
27622762 # sanity check that the implementation isn't expecting a Misaligned exception
27632763 # before an access/page fault exception (that would be an invalid config)
27642764 assert(MISALIGNED_LDST_EXCEPTION_PRIORITY == "low", "Invalid config: can't mix low-priority misaligned exceptions with large atomicity granule");
0 commit comments