]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - sim/common/sim-reg.c
sim: common: change sim_{fetch,store}_register helpers to use void* buffers
[thirdparty/binutils-gdb.git] / sim / common / sim-reg.c
index 54ce56206a40e4ee8aff907223272a7595ec976f..ca242de7b99a421ceff153bc68ae00b114259cb8 100644 (file)
@@ -30,7 +30,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
    cpus.  */
 
 int
-sim_fetch_register (SIM_DESC sd, int rn, unsigned char *buf, int length)
+sim_fetch_register (SIM_DESC sd, int rn, void *buf, int length)
 {
   SIM_CPU *cpu = STATE_CPU (sd, 0);
 
@@ -45,7 +45,7 @@ sim_fetch_register (SIM_DESC sd, int rn, unsigned char *buf, int length)
    cpus.  */
 
 int
-sim_store_register (SIM_DESC sd, int rn, const unsigned char *buf, int length)
+sim_store_register (SIM_DESC sd, int rn, const void *buf, int length)
 {
   SIM_CPU *cpu = STATE_CPU (sd, 0);