mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-01-03 23:43:38 +01:00
591e453717
On sh-generic targets, the headers <bits/cpucap.h> (in C) and <bits/asm/cpucap.h> (in assembler) provide definitions to acces the __cpucap symbol which provides information on the CPU. Currently, a single capability __CPUCAP_SH4ALDSP is defined; it represents the SH4 extended instructions together with the integrated DSP instructions. The main uses of this capability are [movua.l] (unaligned reads) and [ldrc] (built-in tight loops). Capabilities are initialized to 0 (their safest default) and the runtime can enable them based on what hardware is running.
9 lines
268 B
C
9 lines
268 B
C
#ifndef __BITS_ASM_CPUCAP_H__
|
|
# define __BITS_ASM_CPUCAP_H__
|
|
|
|
/* CPU capabilities for assembler code. See also <bits/cpucap.h>. */
|
|
|
|
/* CPU supports the SH4AL-DSP instruction set (with DSP turned on). */
|
|
#define __CPUCAP_SH4ALDSP 0x01
|
|
|
|
#endif /*__BITS_ASM_CPUCAP_H__*/
|