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 i386_elf_emit_arch_note
[deliverable/binutils-gdb.git]
/
sim
/
ppc
/
hw_register.c
diff --git
a/sim/ppc/hw_register.c
b/sim/ppc/hw_register.c
index f361e462527724e4f375f85b59cc4b6808417f46..de65c9f018387a87b66c747408afe544a5d11cdf 100644
(file)
--- a/
sim/ppc/hw_register.c
+++ b/
sim/ppc/hw_register.c
@@
-1,10
+1,10
@@
/* This file is part of the program psim.
/* This file is part of the program psim.
- Copyright
(C) 1994-1996, Andrew Cagney <cagney@highland.com.au>
+ Copyright
1994, 1995, 1996, 2003 Andrew Cagney
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version
2
of the License, or
+ the Free Software Foundation; either version
3
of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
(at your option) any later version.
This program is distributed in the hope that it will be useful,
@@
-13,8
+13,7
@@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
*/
@@
-98,10
+97,11
@@
do_register_init(device *me,
DTRACE(register, ("%d.%s=0x%lx\n", processor, name,
(unsigned long)value));
}
DTRACE(register, ("%d.%s=0x%lx\n", processor, name,
(unsigned long)value));
}
- psim_write_register(system, processor, /* all processors */
- &value,
- name,
- cooked_transfer);
+ if (psim_write_register(system, processor, /* all processors */
+ &value,
+ name,
+ cooked_transfer) <= 0)
+ error("Invalid register name %s\n", name);
}
}
}
}
@@
-128,4
+128,4
@@
const device_descriptor hw_register_device_descriptor[] = {
{ NULL },
};
{ NULL },
};
-#endif
_HW_REGISTER_C_
+#endif
/* _HW_REGISTER_C_ */
This page took
0.023374 seconds
and
4
git commands to generate.