Move the initialization of AS of index 0 (ARMASIdx_NS) so it happens
before the initialization of the other address spaces. This is purely a
code organization change with no effect on behavior.
Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
Suggested-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-ID: <
20260116185814.108560-2-gustavo.romero@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
cs->num_ases = 1 + has_secure;
}
+ cpu_address_space_init(cs, ARMASIdx_NS, "cpu-memory", cs->memory);
+
if (has_secure) {
if (!cpu->secure_memory) {
cpu->secure_memory = cs->memory;
}
}
- cpu_address_space_init(cs, ARMASIdx_NS, "cpu-memory", cs->memory);
-
/* No core_count specified, default to smp_cpus. */
if (cpu->core_count == -1) {
cpu->core_count = smp_cpus;