Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions qemu-components/common/include/libqemu-cxx/target_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ namespace qemu {

enum Target {
AARCH64,
ARM,
RISCV64,
RISCV32,
MICROBLAZE,
Expand Down
2 changes: 2 additions & 0 deletions qemu-components/common/include/qemu-instance.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ class QemuInstance : public sc_core::sc_module
{
if (s == "AARCH64") {
return QemuInstance::Target::AARCH64;
} else if (s == "ARM") {
return QemuInstance::Target::ARM;
} else if (s == "RISCV64") {
return QemuInstance::Target::RISCV64;
} else if (s == "RISCV32") {
Expand Down
10 changes: 10 additions & 0 deletions qemu-components/common/src/libqemu-cxx/target-info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const char* get_target_name(Target t)
case AARCH64:
return "AArch64";

case ARM:
return "ARM (32-bit)";

case RISCV64:
return "RISC-V (64 bits)";

Expand All @@ -40,6 +43,10 @@ const char* get_target_name(Target t)
#define LIBQEMU_TARGET_aarch64_LIBRARY nullptr
#endif

#ifndef LIBQEMU_TARGET_arm_LIBRARY
#define LIBQEMU_TARGET_arm_LIBRARY nullptr
#endif

#ifndef LIBQEMU_TARGET_riscv64_LIBRARY
#define LIBQEMU_TARGET_riscv64_LIBRARY nullptr
#endif
Expand All @@ -66,6 +73,9 @@ const char* get_target_lib(Target t)
case AARCH64:
return LIBQEMU_TARGET_aarch64_LIBRARY;

case ARM:
return LIBQEMU_TARGET_arm_LIBRARY;

case RISCV64:
return LIBQEMU_TARGET_riscv64_LIBRARY;

Expand Down
Loading