📄 cpumodel.t
字号:
@c@c COPYRIGHT (c) 1988-2002.@c On-Line Applications Research Corporation (OAR).@c All rights reserved.@c@c $Id: cpumodel.t,v 1.6.4.1 2003/05/22 08:07:00 ralf Exp $@c@chapter CPU Model Dependent Features@section IntroductionMicroprocessors are generally classified intofamilies with a variety of CPU models or implementations withinthat family. Within a processor family, there is a high levelof binary compatibility. This family may be based on either anarchitectural specification or on maintaining compatibility witha popular processor. Recent microprocessor families such as theSPARC or PA-RISC are based on an architectural specificationwhich is independent or any particular CPU model orimplementation. Older families such as the M68xxx and the iX86evolved as the manufacturer strived to produce higherperformance processor models which maintained binarycompatibility with older models.RTEMS takes advantage of the similarity of thevarious models within a CPU family. Although the models do varyin significant ways, the high level of compatibility makes itpossible to share the bulk of the CPU dependent executive codeacross the entire family. Each processor family supported byRTEMS has a list of features which vary between CPU modelswithin a family. For example, the most common model dependentfeature regardless of CPU family is the presence or absence of afloating point unit or coprocessor. When defining the list offeatures present on a particular CPU model, one simply notesthat floating point hardware is or is not present and defines asingle constant appropriately. Conditional compilation isutilized to include the appropriate source code for this CPUmodel's feature set. It is important to note that this meansthat RTEMS is thus compiled using the appropriate feature setand compilation flags optimal for this CPU model used. Thealternative would be to generate a binary which would execute onall family members using only the features which were alwayspresent.This chapter presents the set of features which varyacross PA-RISC implementations and are of importance to RTEMS.The set of CPU model feature macros are defined in the filecpukit/score/cpu/hppa1_1/hppa.h based upon the particular CPUmodel defined on the compilation command line.@section CPU Model NameThe macro CPU_MODEL_NAME is a string which designatesthe name of this CPU model. For example, for the Hewlett PackardPA-7100 CPU model, this macro is set to the string "hppa 7100".
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -