aboutsummaryrefslogtreecommitdiff
path: root/reference_model/include/debug_types.h
diff options
context:
space:
mode:
authorJerry Ge <jerry.ge@arm.com>2023-03-06 13:07:36 -0800
committerEric Kunze <eric.kunze@arm.com>2023-03-17 18:47:04 +0000
commitcf305dbb7f3e3be7c4e6c71174e1183eb489ec03 (patch)
treea542921c739be36ff3133a20017e500b5405cb91 /reference_model/include/debug_types.h
parent2eb3d63318c139eda94775730878c6c2168ac148 (diff)
downloadreference_model-cf305dbb7f3e3be7c4e6c71174e1183eb489ec03.tar.gz
Refactor 1L to INT64_C()
Signed-off-by: Jerry Ge <jerry.ge@arm.com> Change-Id: If3f8c5a1f2dffac36448101959557f86b6ab6c7f
Diffstat (limited to 'reference_model/include/debug_types.h')
-rw-r--r--reference_model/include/debug_types.h9
1 files changed, 5 insertions, 4 deletions
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<stdint.h>
#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
}