cortex a8: add missing error handling for cortex_a8_dap_write/read_coreregister_u32()