]> git.baikalelectronics.ru Git - uboot.git/commit
test: cpu: Handle both 32bit and 64bit CPUs
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 13 Aug 2023 19:52:19 +0000 (21:52 +0200)
committerSimon Glass <sjg@chromium.org>
Sun, 20 Aug 2023 21:55:27 +0000 (15:55 -0600)
commit9b9f2598766279228ff661e148cf42bd8730dd16
treeea63551e19d373bbbd1f7b9ca65a3da76392564e
parent60235fd418bbb9490715c3aed7face40eaa0ee49
test: cpu: Handle both 32bit and 64bit CPUs

Handle both 32bit and 64bit systems, i.e. sandbox and sandbox64
the same way drivers/cpu/cpu_sandbox.c does, that is in case
CONFIG_PHYS_64BIT is enabled, assume 64bit address width, else
assume 32bit address width. This fixes ut_dm_dm_test_cpu test
failure on sandbox64.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/cpu.c