@@ -98,7 +98,7 @@ struct SETTINGS {
9898 id::thumb_version thumb_version = id::thumb_version::NO_THUMB ; // either 1 or 2, 0 if not supported
9999 /* */ u8 core_count = 0 ;
100100 /* */ u16 clock_speed_mhz = 0 ; // 0 will mean no clock speed constraints
101- /* */ std:: size_t memsize = 0 ;
101+ /* */ u32 memsize = 0 ;
102102 id::arch arch = id::arch::UNKNOWN ;
103103 /* */ id::specific_arch specific_arch = id::specific_arch::UNKNOWN ;
104104 id::product_family product_family = id::product_family::UNKNOWN ;
@@ -281,7 +281,7 @@ constexpr SETTINGS default_settings() {
281281constexpr SETTINGS linux_settings () {
282282 SETTINGS tmp = default_settings ();
283283
284- tmp.memsize = 128UL * 1024 * 1024 ; // 128Mb
284+ tmp.memsize = 128U * 1024U * 1024U ; // 128Mb
285285 tmp.fresh_system = true ;
286286 tmp.linux_boot = true ;
287287 tmp.dtb_load_address = 0x01000000U ;
@@ -301,12 +301,12 @@ constexpr SETTINGS linux_settings() {
301301 tmp.has_random_replacement_cache_strategy = true ; // bit 14 RR = 0 (random/default)
302302 tmp.r1_sbo_mask = (1U << 16 ) | (1U << 19 ); // ARM926EJ-S SBO bits per TRM
303303
304- // ARM926EJ-S has a full MMU. Enable it so that when the kernel writes to
305- // CP15 C1 (R1_M bit) to turn on the MMU, LLARM actually activates virtual →
306- // physical translation. Without this the emulator ignores the MCR and keeps
304+ // ARM926EJ-S has a full MMU. Enable it so that when the kernel writes to
305+ // CP15 C1 (R1_M bit) to turn on the MMU, LLARM actually activates virtual to
306+ // physical translation. Without this, the emulator ignores the MCR and keeps
307307 // reading from raw physical addresses even after the kernel has jumped to
308308 // virtual space (0xC0xxxxxx → 0x00xxxxxx).
309- // Use a unified TLB model for simplicity; real ARM926EJ-S has separate I/D
309+ // Use a unified TLB model for simplicity, real ARM926EJ-S has separate I/D
310310 // TLBs, but the kernel's TLB-invalidation operations map cleanly onto the
311311 // unified table the LLARM TLB implementation exposes.
312312 tmp.is_mmu_enabled = true ;
@@ -319,8 +319,8 @@ constexpr SETTINGS linux_settings() {
319319}
320320
321321
322- // Linux Image (uncompressed kernel) — load directly at the standard ARM physical entry point.
323- // No decompressor involved; the kernel's head.S runs immediately from 0x8000.
322+ // Linux Image (uncompressed kernel), load directly at the standard ARM physical entry point.
323+ // No decompressor involved, the kernel's head.S runs immediately from 0x8000.
324324constexpr SETTINGS image_settings () {
325325 SETTINGS tmp = linux_settings ();
326326 tmp.binary_load_address = 0x00008000U ; // ARM Linux TEXT_OFFSET, physical entry point
0 commit comments