From 91552c79997f9baa859bc9324d5ebea790b1dcba Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Wed, 8 Feb 2023 11:02:20 -0800 Subject: [PATCH] Move yes_no_maybe_t into riscv.h. Change-Id: I5bbdc1af3147e05e25612bf496f409111248c979 --- src/target/riscv/riscv-013.c | 6 ------ src/target/riscv/riscv.h | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/target/riscv/riscv-013.c b/src/target/riscv/riscv-013.c index 661197ca4..7d3b54dcd 100644 --- a/src/target/riscv/riscv-013.c +++ b/src/target/riscv/riscv-013.c @@ -116,12 +116,6 @@ struct trigger { int unique_id; }; -typedef enum { - YNM_MAYBE, - YNM_YES, - YNM_NO -} yes_no_maybe_t; - #define HART_INDEX_MULTIPLE -1 #define HART_INDEX_UNKNOWN -2 diff --git a/src/target/riscv/riscv.h b/src/target/riscv/riscv.h index 87ec13f82..5a9a06e77 100644 --- a/src/target/riscv/riscv.h +++ b/src/target/riscv/riscv.h @@ -41,6 +41,12 @@ typedef uint64_t riscv_reg_t; typedef uint32_t riscv_insn_t; typedef uint64_t riscv_addr_t; +typedef enum { + YNM_MAYBE, + YNM_YES, + YNM_NO +} yes_no_maybe_t; + enum riscv_mem_access_method { RISCV_MEM_ACCESS_UNSPECIFIED, RISCV_MEM_ACCESS_PROGBUF,