1 1.1 christos /* Misc. support for CPU family crisv32f. 2 1.1 christos 3 1.1 christos THIS FILE IS MACHINE GENERATED WITH CGEN. 4 1.1 christos 5 1.1.1.11 christos Copyright (C) 1996-2025 Free Software Foundation, Inc. 6 1.1 christos 7 1.1 christos This file is part of the GNU simulators. 8 1.1 christos 9 1.1 christos This file is free software; you can redistribute it and/or modify 10 1.1 christos it under the terms of the GNU General Public License as published by 11 1.1 christos the Free Software Foundation; either version 3, or (at your option) 12 1.1 christos any later version. 13 1.1 christos 14 1.1 christos It is distributed in the hope that it will be useful, but WITHOUT 15 1.1 christos ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 16 1.1 christos or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public 17 1.1 christos License for more details. 18 1.1 christos 19 1.1 christos You should have received a copy of the GNU General Public License along 20 1.1.1.10 christos with this program; if not, write to the Free Software Foundation, Inc., 21 1.1.1.10 christos 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. 22 1.1 christos 23 1.1 christos */ 24 1.1 christos 25 1.1 christos #define WANT_CPU crisv32f 26 1.1 christos #define WANT_CPU_CRISV32F 27 1.1 christos 28 1.1 christos #include "sim-main.h" 29 1.1 christos #include "cgen-ops.h" 30 1.1 christos 31 1.1 christos /* Get the value of h-v32-v32. */ 32 1.1 christos 33 1.1 christos BI 34 1.1 christos crisv32f_h_v32_v32_get (SIM_CPU *current_cpu) 35 1.1 christos { 36 1.1 christos return GET_H_V32_V32 (); 37 1.1 christos } 38 1.1 christos 39 1.1 christos /* Set a value for h-v32-v32. */ 40 1.1 christos 41 1.1 christos void 42 1.1 christos crisv32f_h_v32_v32_set (SIM_CPU *current_cpu, BI newval) 43 1.1 christos { 44 1.1 christos SET_H_V32_V32 (newval); 45 1.1 christos } 46 1.1 christos 47 1.1 christos /* Get the value of h-pc. */ 48 1.1 christos 49 1.1 christos USI 50 1.1 christos crisv32f_h_pc_get (SIM_CPU *current_cpu) 51 1.1 christos { 52 1.1 christos return CPU (h_pc); 53 1.1 christos } 54 1.1 christos 55 1.1 christos /* Set a value for h-pc. */ 56 1.1 christos 57 1.1 christos void 58 1.1 christos crisv32f_h_pc_set (SIM_CPU *current_cpu, USI newval) 59 1.1 christos { 60 1.1 christos SET_H_PC (newval); 61 1.1 christos } 62 1.1 christos 63 1.1 christos /* Get the value of h-gr. */ 64 1.1 christos 65 1.1 christos SI 66 1.1 christos crisv32f_h_gr_get (SIM_CPU *current_cpu, UINT regno) 67 1.1 christos { 68 1.1 christos return GET_H_GR (regno); 69 1.1 christos } 70 1.1 christos 71 1.1 christos /* Set a value for h-gr. */ 72 1.1 christos 73 1.1 christos void 74 1.1 christos crisv32f_h_gr_set (SIM_CPU *current_cpu, UINT regno, SI newval) 75 1.1 christos { 76 1.1 christos SET_H_GR (regno, newval); 77 1.1 christos } 78 1.1 christos 79 1.1 christos /* Get the value of h-gr-acr. */ 80 1.1 christos 81 1.1 christos SI 82 1.1 christos crisv32f_h_gr_acr_get (SIM_CPU *current_cpu, UINT regno) 83 1.1 christos { 84 1.1 christos return CPU (h_gr_acr[regno]); 85 1.1 christos } 86 1.1 christos 87 1.1 christos /* Set a value for h-gr-acr. */ 88 1.1 christos 89 1.1 christos void 90 1.1 christos crisv32f_h_gr_acr_set (SIM_CPU *current_cpu, UINT regno, SI newval) 91 1.1 christos { 92 1.1 christos CPU (h_gr_acr[regno]) = newval; 93 1.1 christos } 94 1.1 christos 95 1.1 christos /* Get the value of h-raw-gr-acr. */ 96 1.1 christos 97 1.1 christos SI 98 1.1 christos crisv32f_h_raw_gr_acr_get (SIM_CPU *current_cpu, UINT regno) 99 1.1 christos { 100 1.1 christos return GET_H_RAW_GR_ACR (regno); 101 1.1 christos } 102 1.1 christos 103 1.1 christos /* Set a value for h-raw-gr-acr. */ 104 1.1 christos 105 1.1 christos void 106 1.1 christos crisv32f_h_raw_gr_acr_set (SIM_CPU *current_cpu, UINT regno, SI newval) 107 1.1 christos { 108 1.1 christos SET_H_RAW_GR_ACR (regno, newval); 109 1.1 christos } 110 1.1 christos 111 1.1 christos /* Get the value of h-sr. */ 112 1.1 christos 113 1.1 christos SI 114 1.1 christos crisv32f_h_sr_get (SIM_CPU *current_cpu, UINT regno) 115 1.1 christos { 116 1.1 christos return GET_H_SR (regno); 117 1.1 christos } 118 1.1 christos 119 1.1 christos /* Set a value for h-sr. */ 120 1.1 christos 121 1.1 christos void 122 1.1 christos crisv32f_h_sr_set (SIM_CPU *current_cpu, UINT regno, SI newval) 123 1.1 christos { 124 1.1 christos SET_H_SR (regno, newval); 125 1.1 christos } 126 1.1 christos 127 1.1 christos /* Get the value of h-sr-v32. */ 128 1.1 christos 129 1.1 christos SI 130 1.1 christos crisv32f_h_sr_v32_get (SIM_CPU *current_cpu, UINT regno) 131 1.1 christos { 132 1.1 christos return GET_H_SR_V32 (regno); 133 1.1 christos } 134 1.1 christos 135 1.1 christos /* Set a value for h-sr-v32. */ 136 1.1 christos 137 1.1 christos void 138 1.1 christos crisv32f_h_sr_v32_set (SIM_CPU *current_cpu, UINT regno, SI newval) 139 1.1 christos { 140 1.1 christos SET_H_SR_V32 (regno, newval); 141 1.1 christos } 142 1.1 christos 143 1.1 christos /* Get the value of h-supr. */ 144 1.1 christos 145 1.1 christos SI 146 1.1 christos crisv32f_h_supr_get (SIM_CPU *current_cpu, UINT regno) 147 1.1 christos { 148 1.1 christos return GET_H_SUPR (regno); 149 1.1 christos } 150 1.1 christos 151 1.1 christos /* Set a value for h-supr. */ 152 1.1 christos 153 1.1 christos void 154 1.1 christos crisv32f_h_supr_set (SIM_CPU *current_cpu, UINT regno, SI newval) 155 1.1 christos { 156 1.1 christos SET_H_SUPR (regno, newval); 157 1.1 christos } 158 1.1 christos 159 1.1 christos /* Get the value of h-cbit. */ 160 1.1 christos 161 1.1 christos BI 162 1.1 christos crisv32f_h_cbit_get (SIM_CPU *current_cpu) 163 1.1 christos { 164 1.1 christos return CPU (h_cbit); 165 1.1 christos } 166 1.1 christos 167 1.1 christos /* Set a value for h-cbit. */ 168 1.1 christos 169 1.1 christos void 170 1.1 christos crisv32f_h_cbit_set (SIM_CPU *current_cpu, BI newval) 171 1.1 christos { 172 1.1 christos CPU (h_cbit) = newval; 173 1.1 christos } 174 1.1 christos 175 1.1 christos /* Get the value of h-cbit-move. */ 176 1.1 christos 177 1.1 christos BI 178 1.1 christos crisv32f_h_cbit_move_get (SIM_CPU *current_cpu) 179 1.1 christos { 180 1.1 christos return GET_H_CBIT_MOVE (); 181 1.1 christos } 182 1.1 christos 183 1.1 christos /* Set a value for h-cbit-move. */ 184 1.1 christos 185 1.1 christos void 186 1.1 christos crisv32f_h_cbit_move_set (SIM_CPU *current_cpu, BI newval) 187 1.1 christos { 188 1.1 christos SET_H_CBIT_MOVE (newval); 189 1.1 christos } 190 1.1 christos 191 1.1 christos /* Get the value of h-cbit-move-v32. */ 192 1.1 christos 193 1.1 christos BI 194 1.1 christos crisv32f_h_cbit_move_v32_get (SIM_CPU *current_cpu) 195 1.1 christos { 196 1.1 christos return GET_H_CBIT_MOVE_V32 (); 197 1.1 christos } 198 1.1 christos 199 1.1 christos /* Set a value for h-cbit-move-v32. */ 200 1.1 christos 201 1.1 christos void 202 1.1 christos crisv32f_h_cbit_move_v32_set (SIM_CPU *current_cpu, BI newval) 203 1.1 christos { 204 1.1 christos SET_H_CBIT_MOVE_V32 (newval); 205 1.1 christos } 206 1.1 christos 207 1.1 christos /* Get the value of h-vbit. */ 208 1.1 christos 209 1.1 christos BI 210 1.1 christos crisv32f_h_vbit_get (SIM_CPU *current_cpu) 211 1.1 christos { 212 1.1 christos return CPU (h_vbit); 213 1.1 christos } 214 1.1 christos 215 1.1 christos /* Set a value for h-vbit. */ 216 1.1 christos 217 1.1 christos void 218 1.1 christos crisv32f_h_vbit_set (SIM_CPU *current_cpu, BI newval) 219 1.1 christos { 220 1.1 christos CPU (h_vbit) = newval; 221 1.1 christos } 222 1.1 christos 223 1.1 christos /* Get the value of h-vbit-move. */ 224 1.1 christos 225 1.1 christos BI 226 1.1 christos crisv32f_h_vbit_move_get (SIM_CPU *current_cpu) 227 1.1 christos { 228 1.1 christos return GET_H_VBIT_MOVE (); 229 1.1 christos } 230 1.1 christos 231 1.1 christos /* Set a value for h-vbit-move. */ 232 1.1 christos 233 1.1 christos void 234 1.1 christos crisv32f_h_vbit_move_set (SIM_CPU *current_cpu, BI newval) 235 1.1 christos { 236 1.1 christos SET_H_VBIT_MOVE (newval); 237 1.1 christos } 238 1.1 christos 239 1.1 christos /* Get the value of h-vbit-move-v32. */ 240 1.1 christos 241 1.1 christos BI 242 1.1 christos crisv32f_h_vbit_move_v32_get (SIM_CPU *current_cpu) 243 1.1 christos { 244 1.1 christos return GET_H_VBIT_MOVE_V32 (); 245 1.1 christos } 246 1.1 christos 247 1.1 christos /* Set a value for h-vbit-move-v32. */ 248 1.1 christos 249 1.1 christos void 250 1.1 christos crisv32f_h_vbit_move_v32_set (SIM_CPU *current_cpu, BI newval) 251 1.1 christos { 252 1.1 christos SET_H_VBIT_MOVE_V32 (newval); 253 1.1 christos } 254 1.1 christos 255 1.1 christos /* Get the value of h-zbit. */ 256 1.1 christos 257 1.1 christos BI 258 1.1 christos crisv32f_h_zbit_get (SIM_CPU *current_cpu) 259 1.1 christos { 260 1.1 christos return CPU (h_zbit); 261 1.1 christos } 262 1.1 christos 263 1.1 christos /* Set a value for h-zbit. */ 264 1.1 christos 265 1.1 christos void 266 1.1 christos crisv32f_h_zbit_set (SIM_CPU *current_cpu, BI newval) 267 1.1 christos { 268 1.1 christos CPU (h_zbit) = newval; 269 1.1 christos } 270 1.1 christos 271 1.1 christos /* Get the value of h-zbit-move. */ 272 1.1 christos 273 1.1 christos BI 274 1.1 christos crisv32f_h_zbit_move_get (SIM_CPU *current_cpu) 275 1.1 christos { 276 1.1 christos return GET_H_ZBIT_MOVE (); 277 1.1 christos } 278 1.1 christos 279 1.1 christos /* Set a value for h-zbit-move. */ 280 1.1 christos 281 1.1 christos void 282 1.1 christos crisv32f_h_zbit_move_set (SIM_CPU *current_cpu, BI newval) 283 1.1 christos { 284 1.1 christos SET_H_ZBIT_MOVE (newval); 285 1.1 christos } 286 1.1 christos 287 1.1 christos /* Get the value of h-zbit-move-v32. */ 288 1.1 christos 289 1.1 christos BI 290 1.1 christos crisv32f_h_zbit_move_v32_get (SIM_CPU *current_cpu) 291 1.1 christos { 292 1.1 christos return GET_H_ZBIT_MOVE_V32 (); 293 1.1 christos } 294 1.1 christos 295 1.1 christos /* Set a value for h-zbit-move-v32. */ 296 1.1 christos 297 1.1 christos void 298 1.1 christos crisv32f_h_zbit_move_v32_set (SIM_CPU *current_cpu, BI newval) 299 1.1 christos { 300 1.1 christos SET_H_ZBIT_MOVE_V32 (newval); 301 1.1 christos } 302 1.1 christos 303 1.1 christos /* Get the value of h-nbit. */ 304 1.1 christos 305 1.1 christos BI 306 1.1 christos crisv32f_h_nbit_get (SIM_CPU *current_cpu) 307 1.1 christos { 308 1.1 christos return CPU (h_nbit); 309 1.1 christos } 310 1.1 christos 311 1.1 christos /* Set a value for h-nbit. */ 312 1.1 christos 313 1.1 christos void 314 1.1 christos crisv32f_h_nbit_set (SIM_CPU *current_cpu, BI newval) 315 1.1 christos { 316 1.1 christos CPU (h_nbit) = newval; 317 1.1 christos } 318 1.1 christos 319 1.1 christos /* Get the value of h-nbit-move. */ 320 1.1 christos 321 1.1 christos BI 322 1.1 christos crisv32f_h_nbit_move_get (SIM_CPU *current_cpu) 323 1.1 christos { 324 1.1 christos return GET_H_NBIT_MOVE (); 325 1.1 christos } 326 1.1 christos 327 1.1 christos /* Set a value for h-nbit-move. */ 328 1.1 christos 329 1.1 christos void 330 1.1 christos crisv32f_h_nbit_move_set (SIM_CPU *current_cpu, BI newval) 331 1.1 christos { 332 1.1 christos SET_H_NBIT_MOVE (newval); 333 1.1 christos } 334 1.1 christos 335 1.1 christos /* Get the value of h-nbit-move-v32. */ 336 1.1 christos 337 1.1 christos BI 338 1.1 christos crisv32f_h_nbit_move_v32_get (SIM_CPU *current_cpu) 339 1.1 christos { 340 1.1 christos return GET_H_NBIT_MOVE_V32 (); 341 1.1 christos } 342 1.1 christos 343 1.1 christos /* Set a value for h-nbit-move-v32. */ 344 1.1 christos 345 1.1 christos void 346 1.1 christos crisv32f_h_nbit_move_v32_set (SIM_CPU *current_cpu, BI newval) 347 1.1 christos { 348 1.1 christos SET_H_NBIT_MOVE_V32 (newval); 349 1.1 christos } 350 1.1 christos 351 1.1 christos /* Get the value of h-xbit. */ 352 1.1 christos 353 1.1 christos BI 354 1.1 christos crisv32f_h_xbit_get (SIM_CPU *current_cpu) 355 1.1 christos { 356 1.1 christos return CPU (h_xbit); 357 1.1 christos } 358 1.1 christos 359 1.1 christos /* Set a value for h-xbit. */ 360 1.1 christos 361 1.1 christos void 362 1.1 christos crisv32f_h_xbit_set (SIM_CPU *current_cpu, BI newval) 363 1.1 christos { 364 1.1 christos CPU (h_xbit) = newval; 365 1.1 christos } 366 1.1 christos 367 1.1 christos /* Get the value of h-ibit. */ 368 1.1 christos 369 1.1 christos BI 370 1.1 christos crisv32f_h_ibit_get (SIM_CPU *current_cpu) 371 1.1 christos { 372 1.1 christos return GET_H_IBIT (); 373 1.1 christos } 374 1.1 christos 375 1.1 christos /* Set a value for h-ibit. */ 376 1.1 christos 377 1.1 christos void 378 1.1 christos crisv32f_h_ibit_set (SIM_CPU *current_cpu, BI newval) 379 1.1 christos { 380 1.1 christos SET_H_IBIT (newval); 381 1.1 christos } 382 1.1 christos 383 1.1 christos /* Get the value of h-pbit. */ 384 1.1 christos 385 1.1 christos BI 386 1.1 christos crisv32f_h_pbit_get (SIM_CPU *current_cpu) 387 1.1 christos { 388 1.1 christos return CPU (h_pbit); 389 1.1 christos } 390 1.1 christos 391 1.1 christos /* Set a value for h-pbit. */ 392 1.1 christos 393 1.1 christos void 394 1.1 christos crisv32f_h_pbit_set (SIM_CPU *current_cpu, BI newval) 395 1.1 christos { 396 1.1 christos CPU (h_pbit) = newval; 397 1.1 christos } 398 1.1 christos 399 1.1 christos /* Get the value of h-rbit. */ 400 1.1 christos 401 1.1 christos BI 402 1.1 christos crisv32f_h_rbit_get (SIM_CPU *current_cpu) 403 1.1 christos { 404 1.1 christos return CPU (h_rbit); 405 1.1 christos } 406 1.1 christos 407 1.1 christos /* Set a value for h-rbit. */ 408 1.1 christos 409 1.1 christos void 410 1.1 christos crisv32f_h_rbit_set (SIM_CPU *current_cpu, BI newval) 411 1.1 christos { 412 1.1 christos CPU (h_rbit) = newval; 413 1.1 christos } 414 1.1 christos 415 1.1 christos /* Get the value of h-ubit. */ 416 1.1 christos 417 1.1 christos BI 418 1.1 christos crisv32f_h_ubit_get (SIM_CPU *current_cpu) 419 1.1 christos { 420 1.1 christos return GET_H_UBIT (); 421 1.1 christos } 422 1.1 christos 423 1.1 christos /* Set a value for h-ubit. */ 424 1.1 christos 425 1.1 christos void 426 1.1 christos crisv32f_h_ubit_set (SIM_CPU *current_cpu, BI newval) 427 1.1 christos { 428 1.1 christos SET_H_UBIT (newval); 429 1.1 christos } 430 1.1 christos 431 1.1 christos /* Get the value of h-gbit. */ 432 1.1 christos 433 1.1 christos BI 434 1.1 christos crisv32f_h_gbit_get (SIM_CPU *current_cpu) 435 1.1 christos { 436 1.1 christos return CPU (h_gbit); 437 1.1 christos } 438 1.1 christos 439 1.1 christos /* Set a value for h-gbit. */ 440 1.1 christos 441 1.1 christos void 442 1.1 christos crisv32f_h_gbit_set (SIM_CPU *current_cpu, BI newval) 443 1.1 christos { 444 1.1 christos CPU (h_gbit) = newval; 445 1.1 christos } 446 1.1 christos 447 1.1 christos /* Get the value of h-kernel-sp. */ 448 1.1 christos 449 1.1 christos SI 450 1.1 christos crisv32f_h_kernel_sp_get (SIM_CPU *current_cpu) 451 1.1 christos { 452 1.1 christos return CPU (h_kernel_sp); 453 1.1 christos } 454 1.1 christos 455 1.1 christos /* Set a value for h-kernel-sp. */ 456 1.1 christos 457 1.1 christos void 458 1.1 christos crisv32f_h_kernel_sp_set (SIM_CPU *current_cpu, SI newval) 459 1.1 christos { 460 1.1 christos CPU (h_kernel_sp) = newval; 461 1.1 christos } 462 1.1 christos 463 1.1 christos /* Get the value of h-ubit-v32. */ 464 1.1 christos 465 1.1 christos BI 466 1.1 christos crisv32f_h_ubit_v32_get (SIM_CPU *current_cpu) 467 1.1 christos { 468 1.1 christos return CPU (h_ubit_v32); 469 1.1 christos } 470 1.1 christos 471 1.1 christos /* Set a value for h-ubit-v32. */ 472 1.1 christos 473 1.1 christos void 474 1.1 christos crisv32f_h_ubit_v32_set (SIM_CPU *current_cpu, BI newval) 475 1.1 christos { 476 1.1 christos SET_H_UBIT_V32 (newval); 477 1.1 christos } 478 1.1 christos 479 1.1 christos /* Get the value of h-ibit-v32. */ 480 1.1 christos 481 1.1 christos BI 482 1.1 christos crisv32f_h_ibit_v32_get (SIM_CPU *current_cpu) 483 1.1 christos { 484 1.1 christos return CPU (h_ibit_v32); 485 1.1 christos } 486 1.1 christos 487 1.1 christos /* Set a value for h-ibit-v32. */ 488 1.1 christos 489 1.1 christos void 490 1.1 christos crisv32f_h_ibit_v32_set (SIM_CPU *current_cpu, BI newval) 491 1.1 christos { 492 1.1 christos SET_H_IBIT_V32 (newval); 493 1.1 christos } 494 1.1 christos 495 1.1 christos /* Get the value of h-mbit. */ 496 1.1 christos 497 1.1 christos BI 498 1.1 christos crisv32f_h_mbit_get (SIM_CPU *current_cpu) 499 1.1 christos { 500 1.1 christos return CPU (h_mbit); 501 1.1 christos } 502 1.1 christos 503 1.1 christos /* Set a value for h-mbit. */ 504 1.1 christos 505 1.1 christos void 506 1.1 christos crisv32f_h_mbit_set (SIM_CPU *current_cpu, BI newval) 507 1.1 christos { 508 1.1 christos SET_H_MBIT (newval); 509 1.1 christos } 510 1.1 christos 511 1.1 christos /* Get the value of h-qbit. */ 512 1.1 christos 513 1.1 christos BI 514 1.1 christos crisv32f_h_qbit_get (SIM_CPU *current_cpu) 515 1.1 christos { 516 1.1 christos return CPU (h_qbit); 517 1.1 christos } 518 1.1 christos 519 1.1 christos /* Set a value for h-qbit. */ 520 1.1 christos 521 1.1 christos void 522 1.1 christos crisv32f_h_qbit_set (SIM_CPU *current_cpu, BI newval) 523 1.1 christos { 524 1.1 christos SET_H_QBIT (newval); 525 1.1 christos } 526 1.1 christos 527 1.1 christos /* Get the value of h-sbit. */ 528 1.1 christos 529 1.1 christos BI 530 1.1 christos crisv32f_h_sbit_get (SIM_CPU *current_cpu) 531 1.1 christos { 532 1.1 christos return CPU (h_sbit); 533 1.1 christos } 534 1.1 christos 535 1.1 christos /* Set a value for h-sbit. */ 536 1.1 christos 537 1.1 christos void 538 1.1 christos crisv32f_h_sbit_set (SIM_CPU *current_cpu, BI newval) 539 1.1 christos { 540 1.1 christos SET_H_SBIT (newval); 541 1.1 christos } 542 1.1 christos 543 1.1 christos /* Get the value of h-insn-prefixed-p. */ 544 1.1 christos 545 1.1 christos BI 546 1.1 christos crisv32f_h_insn_prefixed_p_get (SIM_CPU *current_cpu) 547 1.1 christos { 548 1.1 christos return GET_H_INSN_PREFIXED_P (); 549 1.1 christos } 550 1.1 christos 551 1.1 christos /* Set a value for h-insn-prefixed-p. */ 552 1.1 christos 553 1.1 christos void 554 1.1 christos crisv32f_h_insn_prefixed_p_set (SIM_CPU *current_cpu, BI newval) 555 1.1 christos { 556 1.1 christos SET_H_INSN_PREFIXED_P (newval); 557 1.1 christos } 558 1.1 christos 559 1.1 christos /* Get the value of h-insn-prefixed-p-v32. */ 560 1.1 christos 561 1.1 christos BI 562 1.1 christos crisv32f_h_insn_prefixed_p_v32_get (SIM_CPU *current_cpu) 563 1.1 christos { 564 1.1 christos return GET_H_INSN_PREFIXED_P_V32 (); 565 1.1 christos } 566 1.1 christos 567 1.1 christos /* Set a value for h-insn-prefixed-p-v32. */ 568 1.1 christos 569 1.1 christos void 570 1.1 christos crisv32f_h_insn_prefixed_p_v32_set (SIM_CPU *current_cpu, BI newval) 571 1.1 christos { 572 1.1 christos SET_H_INSN_PREFIXED_P_V32 (newval); 573 1.1 christos } 574 1.1 christos 575 1.1 christos /* Get the value of h-prefixreg-v32. */ 576 1.1 christos 577 1.1 christos SI 578 1.1 christos crisv32f_h_prefixreg_v32_get (SIM_CPU *current_cpu) 579 1.1 christos { 580 1.1 christos return GET_H_PREFIXREG_V32 (); 581 1.1 christos } 582 1.1 christos 583 1.1 christos /* Set a value for h-prefixreg-v32. */ 584 1.1 christos 585 1.1 christos void 586 1.1 christos crisv32f_h_prefixreg_v32_set (SIM_CPU *current_cpu, SI newval) 587 1.1 christos { 588 1.1 christos SET_H_PREFIXREG_V32 (newval); 589 1.1 christos } 590