u-boot/arch/sandbox
AKASHI Takahiro 073e6d65d1 sandbox: fix cpu property in test.dts for pytest
When I tried to run some new efi tests with pytest, efi_smbios_register()
triggered a segmentation fault. Here is the location where it happened:
efi_init_obj_list()
  efi_smbios_register()
    write_smbios_table()
      smbios_write_type4()
        smbios_write_type4_dm()

where dev_get_parent_platdata() should return a pointer to struct
cpu_platdata, but it is actually NULL because any cpu device on
sandbox is attached to "root_driver."

With this patch, this issue will be fixed by moving all the definitions
of cpus under "cpus" node so that they have a "cpu_bus" parent.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-10-15 08:40:02 -06:00
..
cpu sandbox: Allow use of real I/O with readl(), etc. 2019-10-08 13:57:41 +08:00
dts sandbox: fix cpu property in test.dts for pytest 2019-10-15 08:40:02 -06:00
include/asm sandbox: pci: Create a new sandbox_pci_read_bar() function 2019-10-08 13:57:48 +08:00
lib sandbox: Add support for clrsetio_32() and friends 2019-10-08 13:57:40 +08:00
config.mk sandbox: Allo sdl-config to be overridden 2019-07-10 16:52:58 -06:00
Kconfig sandbox: Add 64-bit sandbox 2018-02-18 15:53:48 -07:00
Makefile sandbox: Use 'extras' to specify 'head' files 2018-12-05 06:01:34 -07:00