Remove some usages of constexpr.

This commit is contained in:
Stephanie Gawroriski
2024-06-25 12:53:51 -04:00
parent 784ef114a4
commit c3562082b1
3 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ struct LiteralRef {
uintptr_t value;
};
static constexpr size_t MAX_LITERALS = 1024;
static size_t MAX_LITERALS = 1024;
static LiteralRef literals[MAX_LITERALS];
static size_t literals_count = 0;

View File

@@ -219,7 +219,7 @@ void cpu_int_check()
cpu_events &= ~EVENT_FIQ;
}
static const constexpr uint8_t exc_flags[] = {
static const uint8_t exc_flags[] = {
MODE_SVC | 0xC0, /* Reset */
MODE_UND | 0x80, /* Undefined instruction */
MODE_SVC | 0x80, /* Software interrupt */

View File

@@ -176,7 +176,7 @@ enum Reg : uint8_t {
static int8_t regmap_v2p[16];
/* R0 is used as scratch register. R10 is a pointer to struct arm_state, R11 contains flags. */
static constexpr const uint8_t regmap_first_phys = R1, regmap_last_phys = R9;
static const uint8_t regmap_first_phys = R1, regmap_last_phys = R9;
/* Shortcut. If anything has been mapped, this is true.
Set by regmap_next_preg, unset by regmap_flush. */