From cf305dbb7f3e3be7c4e6c71174e1183eb489ec03 Mon Sep 17 00:00:00 2001 From: Jerry Ge Date: Mon, 6 Mar 2023 13:07:36 -0800 Subject: Refactor 1L to INT64_C() Signed-off-by: Jerry Ge Change-Id: If3f8c5a1f2dffac36448101959557f86b6ab6c7f --- reference_model/include/debug_types.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'reference_model/include/debug_types.h') diff --git a/reference_model/include/debug_types.h b/reference_model/include/debug_types.h index bd93f19..9ff0098 100644 --- a/reference_model/include/debug_types.h +++ b/reference_model/include/debug_types.h @@ -1,5 +1,5 @@ -// Copyright (c) 2020, ARM Limited. +// Copyright (c) 2020-2023, ARM Limited. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -19,6 +19,7 @@ * Defines fundamental debugger datatypes for the functional model */ +#include #ifndef DEBUG_TYPES_H_ #define DEBUG_TYPES_H_ @@ -42,13 +43,13 @@ extern "C" typedef enum func_debug_mode_e { DEBUG_NONE = 0x0, -#define DEBUG_MODE(NAME, BIT) DEBUG_##NAME = (1UL << BIT), +#define DEBUG_MODE(NAME, BIT) DEBUG_##NAME = (UINT64_C(1) << BIT), #include "debug_modes.def" #undef DEBUG_MODE - DEBUG_ALL = 0xffffffffffffffffUL + DEBUG_ALL = UINT64_C(0xffffffffffffffff) } func_debug_mode_e; -#define DEBUG_INST_ALL 0xffffffffffffffffUL +#define DEBUG_INST_ALL UINT64_C(0xffffffffffffffff) #ifdef __cplusplus } -- cgit v1.2.1