cpu: Support querying the address width
[oweals/u-boot.git] / drivers / cpu / cpu_sandbox.c
index ff87e8adca3a0f9fb2d76d03efca57b537ba3709..05b384f6a4577127eabd5db3f3d65d8e382806c2 100644 (file)
@@ -19,6 +19,7 @@ int cpu_sandbox_get_info(struct udevice *dev, struct cpu_info *info)
 {
        info->cpu_freq = 42 * 42 * 42 * 42 * 42;
        info->features = 0x42424242;
+       info->address_width = IS_ENABLED(CONFIG_PHYS_64BIT) ? 64 : 32;
 
        return 0;
 }