SPRUIG5E January 2018 – March 2023 TDA4VM , TDA4VM-Q1
References to control registers in C and C++ will need to be changed manually. The C7000 has a completely different set of control registers. Please see the C7000 CPU and Instruction Set Reference Guide for details.
Control register symbols supported by the compiler
tools are listed in c6x.h
for the C6000 Compiler Tools and in
c7x_cr.h
and c7x_ecr.h
for the C7000 Compiler
Tools. Control registers are declared in these header files using the
__cregister
keyword.
Common examples of code that requires changes are:
The SAT bit can be accessed
using the __get_C7X_FSR()
API, which is defined in
c6x_migration.h
. An 8-bit value is returned in which
the SAT bit is designated as "Bit 7".
The Floating Point Status
bits can be accessed using the __get_C7X_FSR()
API, which
is defined in c6x_migration.h
. An 8-bit value is returned
in which the floating point status bits comprise bits 0-6.