X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=gdb%2Friscv-linux-nat.c;h=c09121d052b662fcee27fed559ec1a3608d5388a;hb=ee67fd7f3f6ca78eede2862e309c0bcf266bbd7e;hp=7dbfe651f2c77a86d126a47685cbd5162d5ff9e5;hpb=0a640d719684f25bdb88ae60148c6978e6131701;p=external%2Fbinutils.git diff --git a/gdb/riscv-linux-nat.c b/gdb/riscv-linux-nat.c index 7dbfe65..c09121d 100644 --- a/gdb/riscv-linux-nat.c +++ b/gdb/riscv-linux-nat.c @@ -201,10 +201,8 @@ riscv_linux_nat_target::fetch_registers (struct regcache *regcache, int regnum) if ((regnum == RISCV_CSR_MISA_REGNUM) || (regnum == -1)) - { - /* TODO: Need to add a ptrace call for this. */ - regcache->raw_supply_zeroed (regnum); - } + /* TODO: Need to add a ptrace call for this. */ + regcache->raw_supply_zeroed (RISCV_CSR_MISA_REGNUM); /* Access to other CSRs has potential security issues, don't support them for now. */