mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-05 02:47:05 +00:00
* config/tc-sparc.c (sparc_ip): Clean up ASI support.
This commit is contained in:
parent
7ec658304a
commit
593d18d36c
@ -1,3 +1,7 @@
|
||||
Tue Aug 29 15:45:37 1995 Doug Evans <dje@canuck.cygnus.com>
|
||||
|
||||
* config/tc-sparc.c (sparc_ip): Clean up ASI support.
|
||||
|
||||
Tue Aug 29 13:20:27 1995 steve chamberlain <sac@slash.cygnus.com>
|
||||
|
||||
* read.c (potable): Rva is new entry.
|
||||
|
@ -1548,24 +1548,20 @@ sparc_ip (str)
|
||||
/* Parse an asi. */
|
||||
if (*s == '#')
|
||||
{
|
||||
s += 1;
|
||||
if (!strncmp (s, "ASI_AIUP", 8))
|
||||
asi = 0x10, s += 8;
|
||||
else if (!strncmp (s, "ASI_AIUS", 8))
|
||||
asi = 0x11, s += 8;
|
||||
else if (!strncmp (s, "ASI_PNF", 7))
|
||||
asi = 0x82, s += 7;
|
||||
else if (!strncmp (s, "ASI_SNF", 7))
|
||||
asi = 0x83, s += 7;
|
||||
else if (!strncmp (s, "ASI_P", 5))
|
||||
asi = 0x80, s += 5;
|
||||
else if (!strncmp (s, "ASI_S", 5))
|
||||
asi = 0x81, s += 5;
|
||||
else
|
||||
char c, *p;
|
||||
|
||||
for (p = s + 1; isalpha (*p) || *p == '_'; ++p)
|
||||
continue;
|
||||
c = *p;
|
||||
*p = 0;
|
||||
asi = sparc_encode_asi (s);
|
||||
*p = c;
|
||||
if (asi == -1)
|
||||
{
|
||||
error_message = ": invalid asi name";
|
||||
goto error;
|
||||
}
|
||||
s = p;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user