projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove ptid_build
[deliverable/binutils-gdb.git]
/
gdb
/
nds32-tdep.c
diff --git
a/gdb/nds32-tdep.c
b/gdb/nds32-tdep.c
index 73a71b92c0bdee29a82b415e8252dc6c2425d9ad..b616cc9b2cedcdc56c53a20279e1ab7cc53c6248 100644
(file)
--- a/
gdb/nds32-tdep.c
+++ b/
gdb/nds32-tdep.c
@@
-437,7
+437,7
@@
nds32_pseudo_register_name (struct gdbarch *gdbarch, int regnum)
static enum register_status
nds32_pseudo_register_read (struct gdbarch *gdbarch,
static enum register_status
nds32_pseudo_register_read (struct gdbarch *gdbarch,
-
struct
regcache *regcache, int regnum,
+
readable_
regcache *regcache, int regnum,
gdb_byte *buf)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
gdb_byte *buf)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
@@
-500,9
+500,9
@@
nds32_pseudo_register_write (struct gdbarch *gdbarch,
offset = (regnum & 1) ? 0 : 4;
fdr_regnum = NDS32_FD0_REGNUM + (regnum >> 1);
offset = (regnum & 1) ? 0 : 4;
fdr_regnum = NDS32_FD0_REGNUM + (regnum >> 1);
- regcache
_raw_read (regcache,
fdr_regnum, reg_buf);
+ regcache
->raw_read (
fdr_regnum, reg_buf);
memcpy (reg_buf + offset, buf, 4);
memcpy (reg_buf + offset, buf, 4);
- regcache
_raw_write (regcache,
fdr_regnum, reg_buf);
+ regcache
->raw_write (
fdr_regnum, reg_buf);
return;
}
return;
}
@@
-1587,13
+1587,11
@@
nds32_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
switch (len)
{
case 4:
switch (len)
{
case 4:
- regcache_cooked_write (regcache,
- tdep->fs0_regnum + foff, val);
+ regcache->cooked_write (tdep->fs0_regnum + foff, val);
foff++;
break;
case 8:
foff++;
break;
case 8:
- regcache_cooked_write (regcache,
- NDS32_FD0_REGNUM + (foff >> 1), val);
+ regcache->cooked_write (NDS32_FD0_REGNUM + (foff >> 1), val);
foff += 2;
break;
default:
foff += 2;
break;
default:
@@
-1740,9
+1738,9
@@
nds32_extract_return_value (struct gdbarch *gdbarch, struct type *type,
if (abi_use_fpr && calling_use_fpr)
{
if (len == 4)
if (abi_use_fpr && calling_use_fpr)
{
if (len == 4)
- regcache
_cooked_read (regcache,
tdep->fs0_regnum, valbuf);
+ regcache
->cooked_read (
tdep->fs0_regnum, valbuf);
else if (len == 8)
else if (len == 8)
- regcache
_cooked_read (regcache,
NDS32_FD0_REGNUM, valbuf);
+ regcache
->cooked_read (
NDS32_FD0_REGNUM, valbuf);
else
internal_error (__FILE__, __LINE__,
_("Cannot extract return value of %d bytes "
else
internal_error (__FILE__, __LINE__,
_("Cannot extract return value of %d bytes "
@@
-1788,7
+1786,7
@@
nds32_extract_return_value (struct gdbarch *gdbarch, struct type *type,
}
else if (len == 4)
{
}
else if (len == 4)
{
- regcache
_cooked_read (regcache,
NDS32_R0_REGNUM, valbuf);
+ regcache
->cooked_read (
NDS32_R0_REGNUM, valbuf);
}
else if (len < 8)
{
}
else if (len < 8)
{
@@
-1805,8
+1803,8
@@
nds32_extract_return_value (struct gdbarch *gdbarch, struct type *type,
}
else
{
}
else
{
- regcache
_cooked_read (regcache,
NDS32_R0_REGNUM, valbuf);
- regcache
_cooked_read (regcache,
NDS32_R0_REGNUM + 1, valbuf + 4);
+ regcache
->cooked_read (
NDS32_R0_REGNUM, valbuf);
+ regcache
->cooked_read (
NDS32_R0_REGNUM + 1, valbuf + 4);
}
}
}
}
}
}
@@
-1830,9
+1828,9
@@
nds32_store_return_value (struct gdbarch *gdbarch, struct type *type,
if (abi_use_fpr && calling_use_fpr)
{
if (len == 4)
if (abi_use_fpr && calling_use_fpr)
{
if (len == 4)
- regcache
_cooked_write (regcache,
tdep->fs0_regnum, valbuf);
+ regcache
->cooked_write (
tdep->fs0_regnum, valbuf);
else if (len == 8)
else if (len == 8)
- regcache
_cooked_write (regcache,
NDS32_FD0_REGNUM, valbuf);
+ regcache
->cooked_write (
NDS32_FD0_REGNUM, valbuf);
else
internal_error (__FILE__, __LINE__,
_("Cannot store return value of %d bytes "
else
internal_error (__FILE__, __LINE__,
_("Cannot store return value of %d bytes "
@@
-1849,7
+1847,7
@@
nds32_store_return_value (struct gdbarch *gdbarch, struct type *type,
}
else if (len == 4)
{
}
else if (len == 4)
{
- regcache
_cooked_write (regcache,
NDS32_R0_REGNUM, valbuf);
+ regcache
->cooked_write (
NDS32_R0_REGNUM, valbuf);
}
else if (len < 8)
{
}
else if (len < 8)
{
@@
-1867,8
+1865,8
@@
nds32_store_return_value (struct gdbarch *gdbarch, struct type *type,
}
else
{
}
else
{
- regcache
_cooked_write (regcache,
NDS32_R0_REGNUM, valbuf);
- regcache
_cooked_write (regcache,
NDS32_R0_REGNUM + 1, valbuf + 4);
+ regcache
->cooked_write (
NDS32_R0_REGNUM, valbuf);
+ regcache
->cooked_write (
NDS32_R0_REGNUM + 1, valbuf + 4);
}
}
}
}
}
}
This page took
0.025805 seconds
and
4
git commands to generate.