SourcePoint Intel Help

Table of Contents

csr

Read/write control bus registers for Uncore devices.

Syntax

[result =] csr([DID,]reg) [= value]

Where:

reg

is an expression that evaluates to a valid control bus register number.

value

is an expression that evaluates to a 32 bit value to load in reg.

result

specifies a debug variable to which the function return value is assigned. If result is not specified, the return value is displayed on the next line of the screen.

DID

is the device ID of the target device of this command.

Discussion

This function allows access to the Control Status Registers for Uncore devices. The csr function will also perform a CSRACCESSREAD on read operations in order to scan out the control register contents. During writes, the csr function only executes a CSRACCESS IR/DR scan. The csr function returns a 32 bit value. If a core device is selected, the function will automatically perform the operation on the core device's related Uncore device. If the device selected is not a core device, the function will check and make sure it is; otherwise an error message will be displayed.

Example 1

Command input:

csr(0x1001) = 0x12340000

csr(0x1001)

Result:

12340000H

Example 2

Command input:

csr(0, 0x1001) = 0x12345678

csr(0, 0x1001)

ย 

Result:

12345678H

Example 3

Command input:

define ord4 ord4val = csr(0x1001)

Example 4

Command input:

define ord4 ord4val = csr(2,0x1001)

Related Topics