target/cortex_a: Extract code to read/write from/to register to/from DCC