Skip to content

qemu __am_ncpu 无法正确识别到核心数 #22

@Holence

Description

@Holence

qemu版本 7.2.13

make传入-smp "4",但在am/src/x86/qemu/trm.c__am_lapic_init()最后只能识别到1个

如果把qemu.mk中的-smp "$(smp)"改为-smp "$(smp),sockets=$(smp),cores=1"好像可以解决问题

qemu的文档中说

For example, the following option defines a machine board with 2 sockets of 1 core before 6.2 and 1 socket of 2 cores after 6.2:
    -smp 2

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