当前位置:网站首页>Sim Api User Guide(6)
Sim Api User Guide(6)
2022-04-23 10:05:00 【weixin_ thirty-eight million four hundred and ninety-eight thou】
Sim Api User Guide(6)
2.9.20 ConfigureMemFill
Prototype
HEXAPI_Status ConfigureMemFill(HEX_1u_t value)
Parameters

Description
Specify a value for all uninitialized memory . The emulator will fill all memory with the specified value before the simulation starts .
hexagon-sim Medium -memfill value Options are similar to this function .
2.9.21 ConfigureMemFillRandom
Prototype
HEXAPI_Status ConfigureMemFillRandom(HEX_4u_t seed)
Parameters

Return

Description
Specify a value as the seed of a random number . The simulator uses rand() Host function to initialize all " uninitialized " The value of memory . The behavior of this function depends on the host implementation of the random number generator .
hexagon-sim Medium -memfill_rand The seed option is similar to this function .
2.9.22 ConfigureStatisticsFile
Prototype
HEXAPI_Status ConfigureStatisticsFile(const char *pStatsFile,
HEXAPI_OpenMode mode = HEX_MODE_WRITE)
Parameters

Return

Description
Specifies the text file to write execution statistics .
Be careful Only when EmitStatistics() When the function is called , Statistics will be written to the specified file .
EmitStatistics() When the function is called , Statistics will be written to the specified file .
2.9.23 ConfigurePmuStatisticsFile
Prototype
HEXAPI_Status ConfigurePmuStatisticsFile(const char *pmuStatsFile, HEXAPI_OpenMode mode = HEX_MODE_WRITE)
Parameters

Return

Description
Specify the text file , take Hexagon PMU The execution statistics of are written into it .
Be careful Only when calling EmitStatistics() Function time , Statistics will be written to the specified file .
2.9.24 ConfigurePCRangeFilter
Prototype
HEXAPI_Status ConfigurePCRangeFilter(HEX_VA_t PCStart,
HEX_VA_t PCEnd)
Parameters

Parameters

Return

Description
Enable the start and stop of statistics collection and tracking based on instruction execution . This applies to all forms of statistical data collection :Gprof、Qprof、 Regional analysis and normal execution statistics . This also applies to trace generation .
When PCStart When the instruction of the address is submitted , The statistical collection began . It means PCStart The statistics of the packet are not in the tracking data . When PCEnd When the instruction of the address is submitted , Statistics collection terminated . It means PCEnd Packet statistics are in the tracking data . Even if PCStart The command at is executed again , Statistical collection will not be restarted .
This routine only enables the collection of statistical data . Use EmitStatistics() or EmitPerfStatistics() To print Statistics .
This function is associated with ConfigureTimeRangeFilter() Working together . When TimeStart or PCStart When the conditions are met , Start collecting statistics , When TimeEnd or PCEnd When the conditions are met , Just end the collection .
2.9.25 ConfigureTimeRangeFilter
Prototype
HEXAPI_Status ConfigureTimeRangeFilter(HEX_8u_t TimeStart,
HEXAPI_Interval StartUnits, HEX_8u_t TimeEnd,
HEXAPI_Interval EndUnits)
Parameters

Return

Description
Enable the start and stop of statistics collection and tracking based on elapsed simulation time . This applies to all forms of statistical data collection :Gprof、Qprof、region profiling And normal execution statistics . This also applies to trace generation .
When TimeStart After time , Start collecting statistics . When TimeEnd After time , The collection of statistics is over . Statistics collection will never be restarted .
This routine only enables the collection of statistical data . Use EmitStatistics() or EmitPerfStatistics() To print Statistics .
This function is associated with ConfigurePCRangeFilter() Working together . When TimeStart or PCStart When the conditions are met , Start collecting statistics , When TimeEnd or PCEnd When the conditions are met , Just end the collection .
2.9.26 ConfigureNULLPointerBehavior
Prototype
HEXAPI_Status ConfigureNULLPointerBehavior(
HEXAPI_Nullptr behavior)
Parameters

Return

Description
Indicates how the simulator should handle NULL Pointer dereference .
2.9.27 ConfigureHeapInfo
Prototype
HEXAPI_Status ConfigureHeapInfo(HEX_PA_t heapBase,
HEX_4u_t heapSize)
Parameters

Return

Description
Indicates the location of the simulator heap . These values are assigned to the running program as part of the startup program of the independent program . This call is for RTOS The application is undefined .
2.9.28 ConfigureStackInfo
Prototype
HEXAPI_Status ConfigureStackInfo(HEX_PA_t stackBase,
HEX_4u_t stackSize)
Parameters

Return

Description
Indicates the location of the simulator stack . These values are given to the running program as part of the stand-alone startup program . If no stack cardinality and size are specified , The location of the stack will be obtained from the executable . This call is for RTOS Application is undefined .
2.9.29 EndOfConfiguration
Prototype
HEXAPI_Status EndOfConfiguration()
Return

Description
This function should be the last of the simulator configuration functions . Calling this function causes the simulator to evaluate configuration options and load cosims、OS Cognitive module 、 Symbol files, etc . If a binary image is provided , It will be loaded into Hexagon Simulator memory .
Be careful Any configuration call after this function will return an error (HEX_STAT_CANNOT_CONFIG).
版权声明
本文为[weixin_ thirty-eight million four hundred and ninety-eight thou]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230955087336.html
边栏推荐
- Realizing data value through streaming data integration (5) - flow analysis
- 面试官:说几个PHP常用函数,幸好我面试之前看到了这篇文章
- Understand scope
- Realize data value through streaming data integration (1)
- Using multithreading to output abc10 times in sequence
- 杰理之通常影响CPU性能测试结果的因素有:【篇】
- Number theory blocking (integer division blocking)
- 杰理之通常程序异常情况有哪些?【篇】
- LeetCode 1249. Minimum Remove to Make Valid Parentheses - FB高频题1
- 一文读懂PlatoFarm新经济模型以及生态进展
猜你喜欢
![[COCI] lattice (dichotomy + tree divide and conquer + string hash)](/img/7b/fe2a45d960a6d3eb7dc25200304adc.png)
[COCI] lattice (dichotomy + tree divide and conquer + string hash)

Shell script interaction free

Configuration of LNMP
MapReduce核心和基础Demo

Juc并发编程07——公平锁真的公平吗(源码剖析)

Educational Codeforces Round 81 (Rated for Div. 2)

Operation of 2022 tea artist (primary) test question simulation test platform

2022茶艺师(初级)考试试题模拟考试平台操作

【无标题】

Read LSTM (long short term memory)
随机推荐
2022 mobile crane driver test question bank simulation test platform operation
Yarn资源调度器
利用多线程按顺序连续输出abc10次
Shell script interaction free
Configuration of LNMP
Formattime timestamp format conversion
Classic routine: DP problem of a kind of string counting
DBA常用SQL语句(1)— 概况信息
通过流式数据集成实现数据价值(3)- 实时持续数据收集
LeetCode 1249. Minimum Remove to Make Valid Parentheses - FB高频题1
CSP认证 202203-2 出行计划(多种解法)
通过流式数据集成实现数据价值(2)
The central control learning infrared remote control module supports network and serial port control
Epidemic prevention registration applet
Code source daily question div1 (701-707)
面试官:说几个PHP常用函数,幸好我面试之前看到了这篇文章
第二章 Oracle Database In-Memory 体系结构(上) (IM-2.1)
雨生百谷,万物生长
理解作用域
Chapter 3 enable and adjust the size of IM column storage (im-3.1)