Skip to content

Simulator on M1/M2 MacOS seems not working #11087

@duduita

Description

@duduita

Simulator on M1/M2 MacOS seems not working:

Create version.h
Register: gpio
Register: hello
Register: dumpstack
Register: nsh
Register: sh
...
'g_reg_offs'
  .basic_num      = nitems(g_reg_offs),
                           ^
sim/sim_tcbinfo.c:96:28: error: use of undeclared identifier 'g_reg_offs'
sim/sim_tcbinfo.c:97:28: error: use of undeclared identifier 'g_reg_offs'
  .total_num      = nitems(g_reg_offs),
                           ^
sim/sim_tcbinfo.c:97:28: error: use of undeclared identifier 'g_reg_offs'
sim/sim_tcbinfo.c:99:10: error: use of undeclared identifier 'g_reg_offs'
    .p = g_reg_offs,
         ^
5 errors generated.
make[1]: *** [sim_tcbinfo.o] Error 1
make: *** [arch/sim/src/libarch.a] Error 2

Looking at the sim_tcbinfo.c, it seems that there are only g_reg_offs defined for CONFIG_HOST_X86, CONFIG_HOST_X86_64, and CONFIG_SIM_M32, but sounds that there's no g_reg_offs defined for CONFIG_HOST_ARM64.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions