RTEMS  5.0.0
Macros
v850.h File Reference

V850 Set up Basic CPU Dependency Settings Based on Compiler Settings. More...

Go to the source code of this file.

Macros

#define CPU_MODEL_NAME   "v850"
 
#define V850_HAS_FPU   0
 
#define V850_HAS_BYTE_SWAP_INSTRUCTION   0
 
#define CPU_NAME   "v850 CPU"
 
#define v850_set_psw(_psw)   __asm__ __volatile__( "ldsr %0, psw" : : "r" (_psw) )
 
#define v850_get_psw(_psw)   __asm__ __volatile__( "stsr psw, %0" : "=&r" (_psw) )
 
#define V850_PSW_ZERO_MASK   0x01
 
#define V850_PSW_IS_ZERO   0x01
 
#define V850_PSW_IS_NOT   0x00
 
#define V850_PSW_SIGN_MASK   0x02
 
#define V850_PSW_SIGN_IS_NEGATIVE   0x02
 
#define V850_PSW_SIGN_IS_ZERO_OR_POSITIVE   0x00
 
#define V850_PSW_OVERFLOW_MASK   0x02
 
#define V850_PSW_OVERFLOW_OCCURRED   0x02
 
#define V850_PSW_OVERFLOW_DID_NOT_OCCUR   0x00
 
#define V850_PSW_CARRY_OR_BORROW_MASK   0x04
 
#define V850_PSW_CARRY_OR_BORROW_OCCURRED   0x04
 
#define V850_PSW_CARRY_OR_BORROW_DID_NOT_OCCUR   0x00
 
#define V850_PSW_SATURATION_MASK   0x10
 
#define V850_PSW_SATURATION_OCCURRED   0x10
 
#define V850_PSW_SATURATION_DID_NOT_OCCUR   0x00
 
#define V850_PSW_INTERRUPT_DISABLE_MASK   0x20
 
#define V850_PSW_INTERRUPT_DISABLE   0x20
 
#define V850_PSW_INTERRUPT_ENABLE   0x00
 
#define V850_PSW_EXCEPTION_IN_PROCESS_MASK   0x40
 
#define V850_PSW_EXCEPTION_IN_PROCESS   0x40
 
#define V850_PSW_EXCEPTION_NOT_IN_PROCESS   0x00
 
#define V850_PSW_NMI_IN_PROCESS_MASK   0x80
 
#define V850_PSW_NMI_IN_PROCESS   0x80
 
#define V850_PSW_NMI_NOT_IN_PROCESS   0x00
 

Detailed Description

V850 Set up Basic CPU Dependency Settings Based on Compiler Settings.

This file sets up basic CPU dependency settings based on compiler settings. For example, it can determine if floating point is available. This particular implementation is specified to the Renesas v850 port.