WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
arch_trace.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2021-2021. All rights reserved.
3 * Description: ARCH cpu trace interface for project
4 *
5 * Create: 2021-10-25
6 */
7#ifndef ARCH_TRACE_H
8#define ARCH_TRACE_H
9
10#include <stdint.h>
11#include "platform_core.h"
12#ifdef SUPPORT_CPU_TRACE
13#include "cpu_trace.h"
14#endif
15#ifdef __cplusplus
16#if __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19#endif /* __cplusplus */
20
21#define RISCV_TRACE_MEM_REGION_START TRACE_MEM_REGION_START
22#define RISCV_TRACE_MEM_REGION_LENGTH TRACE_MEM_REGION_LENGTH
23
24#ifdef SUPPORT_CPU_TRACE
25typedef cpu_trace_item_t riscv_cpu_trace_item_t;
26#endif
27
31static inline void riscv_cpu_trace_disable(void)
32{
33#ifdef SUPPORT_CPU_TRACE
34 cpu_trace_disable();
35#endif
36}
37
38#ifdef __cplusplus
39#if __cplusplus
40}
41#endif /* __cplusplus */
42#endif /* __cplusplus */
43
44#endif