dart: limit vm-base to 36-bit io address space

Required for t602x dcp*.

Signed-off-by: Janne Grunau <j@jannau.net>
This commit is contained in:
Janne Grunau 2023-09-02 15:05:52 +02:00 committed by Hector Martin
parent b9975760d7
commit 4cb3dceb0a

View file

@ -324,6 +324,8 @@ dart_dev_t *dart_init_adt(const char *path, int instance, int device, bool keep_
}
if (ADT_GETPROP(adt, node, "vm-base", &dart->vm_base) < 0)
dart->vm_base = 0;
else
dart->vm_base &= (1LLU << 36) - 1;
return dart;
}