aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch/riscv.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/arch/riscv.h')
-rw-r--r--gdb/arch/riscv.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/arch/riscv.h b/gdb/arch/riscv.h
index ec4d5f3..be41828e 100644
--- a/gdb/arch/riscv.h
+++ b/gdb/arch/riscv.h
@@ -53,6 +53,19 @@ struct riscv_gdbarch_features
this field is true then the hardware floating point abi is in use, and
values are passed in f-registers matching the size of FLEN. */
bool hw_float_abi = false;
+
+ /* Equality operator. */
+ bool operator== (const struct riscv_gdbarch_features &rhs) const
+ {
+ return (xlen == rhs.xlen && flen == rhs.flen
+ && hw_float_abi == rhs.hw_float_abi);
+ }
+
+ /* Inequality operator. */
+ bool operator!= (const struct riscv_gdbarch_features &rhs) const
+ {
+ return !((*this) == rhs);
+ }
};
/* Create and return a target description that is compatible with