Lines Matching refs:vex_state
224 UInt LibVEX_GuestPPC32_get_CR ( /*IN*/const VexGuestPPC32State* vex_state ) in LibVEX_GuestPPC32_get_CR() argument
228 ( (vex_state->guest_CR##_n##_321 & (7<<1)) \ in LibVEX_GuestPPC32_get_CR()
229 | (vex_state->guest_CR##_n##_0 & 1) \ in LibVEX_GuestPPC32_get_CR()
245 UInt LibVEX_GuestPPC64_get_CR ( /*IN*/const VexGuestPPC64State* vex_state ) in LibVEX_GuestPPC64_get_CR() argument
249 ( (vex_state->guest_CR##_n##_321 & (7<<1)) \ in LibVEX_GuestPPC64_get_CR()
250 | (vex_state->guest_CR##_n##_0 & 1) \ in LibVEX_GuestPPC64_get_CR()
266 /*OUT*/VexGuestPPC32State* vex_state ) in LibVEX_GuestPPC32_put_CR() argument
273 vex_state->guest_CR##_n##_0 = toUChar(t & 1); \ in LibVEX_GuestPPC32_put_CR()
274 vex_state->guest_CR##_n##_321 = toUChar(t & (7<<1)); \ in LibVEX_GuestPPC32_put_CR()
293 /*OUT*/VexGuestPPC64State* vex_state ) in LibVEX_GuestPPC64_put_CR() argument
300 vex_state->guest_CR##_n##_0 = toUChar(t & 1); \ in LibVEX_GuestPPC64_put_CR()
301 vex_state->guest_CR##_n##_321 = toUChar(t & (7<<1)); \ in LibVEX_GuestPPC64_put_CR()
318 UInt LibVEX_GuestPPC32_get_XER ( /*IN*/const VexGuestPPC32State* vex_state ) in LibVEX_GuestPPC32_get_XER() argument
321 w |= ( ((UInt)vex_state->guest_XER_BC) & 0xFF ); in LibVEX_GuestPPC32_get_XER()
322 w |= ( (((UInt)vex_state->guest_XER_SO) & 0x1) << 31 ); in LibVEX_GuestPPC32_get_XER()
323 w |= ( (((UInt)vex_state->guest_XER_OV) & 0x1) << 30 ); in LibVEX_GuestPPC32_get_XER()
324 w |= ( (((UInt)vex_state->guest_XER_CA) & 0x1) << 29 ); in LibVEX_GuestPPC32_get_XER()
331 UInt LibVEX_GuestPPC64_get_XER ( /*IN*/const VexGuestPPC64State* vex_state ) in LibVEX_GuestPPC64_get_XER() argument
334 w |= ( ((UInt)vex_state->guest_XER_BC) & 0xFF ); in LibVEX_GuestPPC64_get_XER()
335 w |= ( (((UInt)vex_state->guest_XER_SO) & 0x1) << 31 ); in LibVEX_GuestPPC64_get_XER()
336 w |= ( (((UInt)vex_state->guest_XER_OV) & 0x1) << 30 ); in LibVEX_GuestPPC64_get_XER()
337 w |= ( (((UInt)vex_state->guest_XER_CA) & 0x1) << 29 ); in LibVEX_GuestPPC64_get_XER()
344 /*OUT*/VexGuestPPC32State* vex_state ) in LibVEX_GuestPPC32_put_XER() argument
346 vex_state->guest_XER_BC = toUChar(xer_native & 0xFF); in LibVEX_GuestPPC32_put_XER()
347 vex_state->guest_XER_SO = toUChar((xer_native >> 31) & 0x1); in LibVEX_GuestPPC32_put_XER()
348 vex_state->guest_XER_OV = toUChar((xer_native >> 30) & 0x1); in LibVEX_GuestPPC32_put_XER()
349 vex_state->guest_XER_CA = toUChar((xer_native >> 29) & 0x1); in LibVEX_GuestPPC32_put_XER()
355 /*OUT*/VexGuestPPC64State* vex_state ) in LibVEX_GuestPPC64_put_XER() argument
357 vex_state->guest_XER_BC = toUChar(xer_native & 0xFF); in LibVEX_GuestPPC64_put_XER()
358 vex_state->guest_XER_SO = toUChar((xer_native >> 31) & 0x1); in LibVEX_GuestPPC64_put_XER()
359 vex_state->guest_XER_OV = toUChar((xer_native >> 30) & 0x1); in LibVEX_GuestPPC64_put_XER()
360 vex_state->guest_XER_CA = toUChar((xer_native >> 29) & 0x1); in LibVEX_GuestPPC64_put_XER()
364 void LibVEX_GuestPPC32_initialise ( /*OUT*/VexGuestPPC32State* vex_state ) in LibVEX_GuestPPC32_initialise() argument
367 vex_state->host_EvC_FAILADDR = 0; in LibVEX_GuestPPC32_initialise()
368 vex_state->host_EvC_COUNTER = 0; in LibVEX_GuestPPC32_initialise()
369 vex_state->pad3 = 0; in LibVEX_GuestPPC32_initialise()
370 vex_state->pad4 = 0; in LibVEX_GuestPPC32_initialise()
372 vex_state->guest_GPR0 = 0; in LibVEX_GuestPPC32_initialise()
373 vex_state->guest_GPR1 = 0; in LibVEX_GuestPPC32_initialise()
374 vex_state->guest_GPR2 = 0; in LibVEX_GuestPPC32_initialise()
375 vex_state->guest_GPR3 = 0; in LibVEX_GuestPPC32_initialise()
376 vex_state->guest_GPR4 = 0; in LibVEX_GuestPPC32_initialise()
377 vex_state->guest_GPR5 = 0; in LibVEX_GuestPPC32_initialise()
378 vex_state->guest_GPR6 = 0; in LibVEX_GuestPPC32_initialise()
379 vex_state->guest_GPR7 = 0; in LibVEX_GuestPPC32_initialise()
380 vex_state->guest_GPR8 = 0; in LibVEX_GuestPPC32_initialise()
381 vex_state->guest_GPR9 = 0; in LibVEX_GuestPPC32_initialise()
382 vex_state->guest_GPR10 = 0; in LibVEX_GuestPPC32_initialise()
383 vex_state->guest_GPR11 = 0; in LibVEX_GuestPPC32_initialise()
384 vex_state->guest_GPR12 = 0; in LibVEX_GuestPPC32_initialise()
385 vex_state->guest_GPR13 = 0; in LibVEX_GuestPPC32_initialise()
386 vex_state->guest_GPR14 = 0; in LibVEX_GuestPPC32_initialise()
387 vex_state->guest_GPR15 = 0; in LibVEX_GuestPPC32_initialise()
388 vex_state->guest_GPR16 = 0; in LibVEX_GuestPPC32_initialise()
389 vex_state->guest_GPR17 = 0; in LibVEX_GuestPPC32_initialise()
390 vex_state->guest_GPR18 = 0; in LibVEX_GuestPPC32_initialise()
391 vex_state->guest_GPR19 = 0; in LibVEX_GuestPPC32_initialise()
392 vex_state->guest_GPR20 = 0; in LibVEX_GuestPPC32_initialise()
393 vex_state->guest_GPR21 = 0; in LibVEX_GuestPPC32_initialise()
394 vex_state->guest_GPR22 = 0; in LibVEX_GuestPPC32_initialise()
395 vex_state->guest_GPR23 = 0; in LibVEX_GuestPPC32_initialise()
396 vex_state->guest_GPR24 = 0; in LibVEX_GuestPPC32_initialise()
397 vex_state->guest_GPR25 = 0; in LibVEX_GuestPPC32_initialise()
398 vex_state->guest_GPR26 = 0; in LibVEX_GuestPPC32_initialise()
399 vex_state->guest_GPR27 = 0; in LibVEX_GuestPPC32_initialise()
400 vex_state->guest_GPR28 = 0; in LibVEX_GuestPPC32_initialise()
401 vex_state->guest_GPR29 = 0; in LibVEX_GuestPPC32_initialise()
402 vex_state->guest_GPR30 = 0; in LibVEX_GuestPPC32_initialise()
403 vex_state->guest_GPR31 = 0; in LibVEX_GuestPPC32_initialise()
408 VECZERO(vex_state->guest_VSR0 ); in LibVEX_GuestPPC32_initialise()
409 VECZERO(vex_state->guest_VSR1 ); in LibVEX_GuestPPC32_initialise()
410 VECZERO(vex_state->guest_VSR2 ); in LibVEX_GuestPPC32_initialise()
411 VECZERO(vex_state->guest_VSR3 ); in LibVEX_GuestPPC32_initialise()
412 VECZERO(vex_state->guest_VSR4 ); in LibVEX_GuestPPC32_initialise()
413 VECZERO(vex_state->guest_VSR5 ); in LibVEX_GuestPPC32_initialise()
414 VECZERO(vex_state->guest_VSR6 ); in LibVEX_GuestPPC32_initialise()
415 VECZERO(vex_state->guest_VSR7 ); in LibVEX_GuestPPC32_initialise()
416 VECZERO(vex_state->guest_VSR8 ); in LibVEX_GuestPPC32_initialise()
417 VECZERO(vex_state->guest_VSR9 ); in LibVEX_GuestPPC32_initialise()
418 VECZERO(vex_state->guest_VSR10); in LibVEX_GuestPPC32_initialise()
419 VECZERO(vex_state->guest_VSR11); in LibVEX_GuestPPC32_initialise()
420 VECZERO(vex_state->guest_VSR12); in LibVEX_GuestPPC32_initialise()
421 VECZERO(vex_state->guest_VSR13); in LibVEX_GuestPPC32_initialise()
422 VECZERO(vex_state->guest_VSR14); in LibVEX_GuestPPC32_initialise()
423 VECZERO(vex_state->guest_VSR15); in LibVEX_GuestPPC32_initialise()
424 VECZERO(vex_state->guest_VSR16); in LibVEX_GuestPPC32_initialise()
425 VECZERO(vex_state->guest_VSR17); in LibVEX_GuestPPC32_initialise()
426 VECZERO(vex_state->guest_VSR18); in LibVEX_GuestPPC32_initialise()
427 VECZERO(vex_state->guest_VSR19); in LibVEX_GuestPPC32_initialise()
428 VECZERO(vex_state->guest_VSR20); in LibVEX_GuestPPC32_initialise()
429 VECZERO(vex_state->guest_VSR21); in LibVEX_GuestPPC32_initialise()
430 VECZERO(vex_state->guest_VSR22); in LibVEX_GuestPPC32_initialise()
431 VECZERO(vex_state->guest_VSR23); in LibVEX_GuestPPC32_initialise()
432 VECZERO(vex_state->guest_VSR24); in LibVEX_GuestPPC32_initialise()
433 VECZERO(vex_state->guest_VSR25); in LibVEX_GuestPPC32_initialise()
434 VECZERO(vex_state->guest_VSR26); in LibVEX_GuestPPC32_initialise()
435 VECZERO(vex_state->guest_VSR27); in LibVEX_GuestPPC32_initialise()
436 VECZERO(vex_state->guest_VSR28); in LibVEX_GuestPPC32_initialise()
437 VECZERO(vex_state->guest_VSR29); in LibVEX_GuestPPC32_initialise()
438 VECZERO(vex_state->guest_VSR30); in LibVEX_GuestPPC32_initialise()
439 VECZERO(vex_state->guest_VSR31); in LibVEX_GuestPPC32_initialise()
440 VECZERO(vex_state->guest_VSR32); in LibVEX_GuestPPC32_initialise()
441 VECZERO(vex_state->guest_VSR33); in LibVEX_GuestPPC32_initialise()
442 VECZERO(vex_state->guest_VSR34); in LibVEX_GuestPPC32_initialise()
443 VECZERO(vex_state->guest_VSR35); in LibVEX_GuestPPC32_initialise()
444 VECZERO(vex_state->guest_VSR36); in LibVEX_GuestPPC32_initialise()
445 VECZERO(vex_state->guest_VSR37); in LibVEX_GuestPPC32_initialise()
446 VECZERO(vex_state->guest_VSR38); in LibVEX_GuestPPC32_initialise()
447 VECZERO(vex_state->guest_VSR39); in LibVEX_GuestPPC32_initialise()
448 VECZERO(vex_state->guest_VSR40); in LibVEX_GuestPPC32_initialise()
449 VECZERO(vex_state->guest_VSR41); in LibVEX_GuestPPC32_initialise()
450 VECZERO(vex_state->guest_VSR42); in LibVEX_GuestPPC32_initialise()
451 VECZERO(vex_state->guest_VSR43); in LibVEX_GuestPPC32_initialise()
452 VECZERO(vex_state->guest_VSR44); in LibVEX_GuestPPC32_initialise()
453 VECZERO(vex_state->guest_VSR45); in LibVEX_GuestPPC32_initialise()
454 VECZERO(vex_state->guest_VSR46); in LibVEX_GuestPPC32_initialise()
455 VECZERO(vex_state->guest_VSR47); in LibVEX_GuestPPC32_initialise()
456 VECZERO(vex_state->guest_VSR48); in LibVEX_GuestPPC32_initialise()
457 VECZERO(vex_state->guest_VSR49); in LibVEX_GuestPPC32_initialise()
458 VECZERO(vex_state->guest_VSR50); in LibVEX_GuestPPC32_initialise()
459 VECZERO(vex_state->guest_VSR51); in LibVEX_GuestPPC32_initialise()
460 VECZERO(vex_state->guest_VSR52); in LibVEX_GuestPPC32_initialise()
461 VECZERO(vex_state->guest_VSR53); in LibVEX_GuestPPC32_initialise()
462 VECZERO(vex_state->guest_VSR54); in LibVEX_GuestPPC32_initialise()
463 VECZERO(vex_state->guest_VSR55); in LibVEX_GuestPPC32_initialise()
464 VECZERO(vex_state->guest_VSR56); in LibVEX_GuestPPC32_initialise()
465 VECZERO(vex_state->guest_VSR57); in LibVEX_GuestPPC32_initialise()
466 VECZERO(vex_state->guest_VSR58); in LibVEX_GuestPPC32_initialise()
467 VECZERO(vex_state->guest_VSR59); in LibVEX_GuestPPC32_initialise()
468 VECZERO(vex_state->guest_VSR60); in LibVEX_GuestPPC32_initialise()
469 VECZERO(vex_state->guest_VSR61); in LibVEX_GuestPPC32_initialise()
470 VECZERO(vex_state->guest_VSR62); in LibVEX_GuestPPC32_initialise()
471 VECZERO(vex_state->guest_VSR63); in LibVEX_GuestPPC32_initialise()
475 vex_state->guest_CIA = 0; in LibVEX_GuestPPC32_initialise()
476 vex_state->guest_LR = 0; in LibVEX_GuestPPC32_initialise()
477 vex_state->guest_CTR = 0; in LibVEX_GuestPPC32_initialise()
479 vex_state->guest_XER_SO = 0; in LibVEX_GuestPPC32_initialise()
480 vex_state->guest_XER_OV = 0; in LibVEX_GuestPPC32_initialise()
481 vex_state->guest_XER_CA = 0; in LibVEX_GuestPPC32_initialise()
482 vex_state->guest_XER_BC = 0; in LibVEX_GuestPPC32_initialise()
484 vex_state->guest_CR0_321 = 0; in LibVEX_GuestPPC32_initialise()
485 vex_state->guest_CR0_0 = 0; in LibVEX_GuestPPC32_initialise()
486 vex_state->guest_CR1_321 = 0; in LibVEX_GuestPPC32_initialise()
487 vex_state->guest_CR1_0 = 0; in LibVEX_GuestPPC32_initialise()
488 vex_state->guest_CR2_321 = 0; in LibVEX_GuestPPC32_initialise()
489 vex_state->guest_CR2_0 = 0; in LibVEX_GuestPPC32_initialise()
490 vex_state->guest_CR3_321 = 0; in LibVEX_GuestPPC32_initialise()
491 vex_state->guest_CR3_0 = 0; in LibVEX_GuestPPC32_initialise()
492 vex_state->guest_CR4_321 = 0; in LibVEX_GuestPPC32_initialise()
493 vex_state->guest_CR4_0 = 0; in LibVEX_GuestPPC32_initialise()
494 vex_state->guest_CR5_321 = 0; in LibVEX_GuestPPC32_initialise()
495 vex_state->guest_CR5_0 = 0; in LibVEX_GuestPPC32_initialise()
496 vex_state->guest_CR6_321 = 0; in LibVEX_GuestPPC32_initialise()
497 vex_state->guest_CR6_0 = 0; in LibVEX_GuestPPC32_initialise()
498 vex_state->guest_CR7_321 = 0; in LibVEX_GuestPPC32_initialise()
499 vex_state->guest_CR7_0 = 0; in LibVEX_GuestPPC32_initialise()
501 vex_state->guest_FPROUND = PPCrm_NEAREST; in LibVEX_GuestPPC32_initialise()
502 vex_state->guest_DFPROUND = PPCrm_NEAREST; in LibVEX_GuestPPC32_initialise()
503 vex_state->pad1 = 0; in LibVEX_GuestPPC32_initialise()
504 vex_state->pad2 = 0; in LibVEX_GuestPPC32_initialise()
506 vex_state->guest_VRSAVE = 0; in LibVEX_GuestPPC32_initialise()
508 vex_state->guest_VSCR = 0x0; // Non-Java mode = 0 in LibVEX_GuestPPC32_initialise()
510 vex_state->guest_EMNOTE = EmNote_NONE; in LibVEX_GuestPPC32_initialise()
512 vex_state->guest_CMSTART = 0; in LibVEX_GuestPPC32_initialise()
513 vex_state->guest_CMLEN = 0; in LibVEX_GuestPPC32_initialise()
515 vex_state->guest_NRADDR = 0; in LibVEX_GuestPPC32_initialise()
516 vex_state->guest_NRADDR_GPR2 = 0; in LibVEX_GuestPPC32_initialise()
518 vex_state->guest_REDIR_SP = -1; in LibVEX_GuestPPC32_initialise()
520 vex_state->guest_REDIR_STACK[i] = 0; in LibVEX_GuestPPC32_initialise()
522 vex_state->guest_IP_AT_SYSCALL = 0; in LibVEX_GuestPPC32_initialise()
523 vex_state->guest_SPRG3_RO = 0; in LibVEX_GuestPPC32_initialise()
524 vex_state->guest_PPR = 0x4ULL << 50; // medium priority in LibVEX_GuestPPC32_initialise()
525 vex_state->guest_PSPB = 0x100; // an arbitrary non-zero value to start with in LibVEX_GuestPPC32_initialise()
527 vex_state->padding1 = 0; in LibVEX_GuestPPC32_initialise()
528 vex_state->padding2 = 0; in LibVEX_GuestPPC32_initialise()
533 void LibVEX_GuestPPC64_initialise ( /*OUT*/VexGuestPPC64State* vex_state ) in LibVEX_GuestPPC64_initialise() argument
536 vex_state->host_EvC_FAILADDR = 0; in LibVEX_GuestPPC64_initialise()
537 vex_state->host_EvC_COUNTER = 0; in LibVEX_GuestPPC64_initialise()
538 vex_state->pad0 = 0; in LibVEX_GuestPPC64_initialise()
539 vex_state->guest_GPR0 = 0; in LibVEX_GuestPPC64_initialise()
540 vex_state->guest_GPR1 = 0; in LibVEX_GuestPPC64_initialise()
541 vex_state->guest_GPR2 = 0; in LibVEX_GuestPPC64_initialise()
542 vex_state->guest_GPR3 = 0; in LibVEX_GuestPPC64_initialise()
543 vex_state->guest_GPR4 = 0; in LibVEX_GuestPPC64_initialise()
544 vex_state->guest_GPR5 = 0; in LibVEX_GuestPPC64_initialise()
545 vex_state->guest_GPR6 = 0; in LibVEX_GuestPPC64_initialise()
546 vex_state->guest_GPR7 = 0; in LibVEX_GuestPPC64_initialise()
547 vex_state->guest_GPR8 = 0; in LibVEX_GuestPPC64_initialise()
548 vex_state->guest_GPR9 = 0; in LibVEX_GuestPPC64_initialise()
549 vex_state->guest_GPR10 = 0; in LibVEX_GuestPPC64_initialise()
550 vex_state->guest_GPR11 = 0; in LibVEX_GuestPPC64_initialise()
551 vex_state->guest_GPR12 = 0; in LibVEX_GuestPPC64_initialise()
552 vex_state->guest_GPR13 = 0; in LibVEX_GuestPPC64_initialise()
553 vex_state->guest_GPR14 = 0; in LibVEX_GuestPPC64_initialise()
554 vex_state->guest_GPR15 = 0; in LibVEX_GuestPPC64_initialise()
555 vex_state->guest_GPR16 = 0; in LibVEX_GuestPPC64_initialise()
556 vex_state->guest_GPR17 = 0; in LibVEX_GuestPPC64_initialise()
557 vex_state->guest_GPR18 = 0; in LibVEX_GuestPPC64_initialise()
558 vex_state->guest_GPR19 = 0; in LibVEX_GuestPPC64_initialise()
559 vex_state->guest_GPR20 = 0; in LibVEX_GuestPPC64_initialise()
560 vex_state->guest_GPR21 = 0; in LibVEX_GuestPPC64_initialise()
561 vex_state->guest_GPR22 = 0; in LibVEX_GuestPPC64_initialise()
562 vex_state->guest_GPR23 = 0; in LibVEX_GuestPPC64_initialise()
563 vex_state->guest_GPR24 = 0; in LibVEX_GuestPPC64_initialise()
564 vex_state->guest_GPR25 = 0; in LibVEX_GuestPPC64_initialise()
565 vex_state->guest_GPR26 = 0; in LibVEX_GuestPPC64_initialise()
566 vex_state->guest_GPR27 = 0; in LibVEX_GuestPPC64_initialise()
567 vex_state->guest_GPR28 = 0; in LibVEX_GuestPPC64_initialise()
568 vex_state->guest_GPR29 = 0; in LibVEX_GuestPPC64_initialise()
569 vex_state->guest_GPR30 = 0; in LibVEX_GuestPPC64_initialise()
570 vex_state->guest_GPR31 = 0; in LibVEX_GuestPPC64_initialise()
575 VECZERO(vex_state->guest_VSR0 ); in LibVEX_GuestPPC64_initialise()
576 VECZERO(vex_state->guest_VSR1 ); in LibVEX_GuestPPC64_initialise()
577 VECZERO(vex_state->guest_VSR2 ); in LibVEX_GuestPPC64_initialise()
578 VECZERO(vex_state->guest_VSR3 ); in LibVEX_GuestPPC64_initialise()
579 VECZERO(vex_state->guest_VSR4 ); in LibVEX_GuestPPC64_initialise()
580 VECZERO(vex_state->guest_VSR5 ); in LibVEX_GuestPPC64_initialise()
581 VECZERO(vex_state->guest_VSR6 ); in LibVEX_GuestPPC64_initialise()
582 VECZERO(vex_state->guest_VSR7 ); in LibVEX_GuestPPC64_initialise()
583 VECZERO(vex_state->guest_VSR8 ); in LibVEX_GuestPPC64_initialise()
584 VECZERO(vex_state->guest_VSR9 ); in LibVEX_GuestPPC64_initialise()
585 VECZERO(vex_state->guest_VSR10); in LibVEX_GuestPPC64_initialise()
586 VECZERO(vex_state->guest_VSR11); in LibVEX_GuestPPC64_initialise()
587 VECZERO(vex_state->guest_VSR12); in LibVEX_GuestPPC64_initialise()
588 VECZERO(vex_state->guest_VSR13); in LibVEX_GuestPPC64_initialise()
589 VECZERO(vex_state->guest_VSR14); in LibVEX_GuestPPC64_initialise()
590 VECZERO(vex_state->guest_VSR15); in LibVEX_GuestPPC64_initialise()
591 VECZERO(vex_state->guest_VSR16); in LibVEX_GuestPPC64_initialise()
592 VECZERO(vex_state->guest_VSR17); in LibVEX_GuestPPC64_initialise()
593 VECZERO(vex_state->guest_VSR18); in LibVEX_GuestPPC64_initialise()
594 VECZERO(vex_state->guest_VSR19); in LibVEX_GuestPPC64_initialise()
595 VECZERO(vex_state->guest_VSR20); in LibVEX_GuestPPC64_initialise()
596 VECZERO(vex_state->guest_VSR21); in LibVEX_GuestPPC64_initialise()
597 VECZERO(vex_state->guest_VSR22); in LibVEX_GuestPPC64_initialise()
598 VECZERO(vex_state->guest_VSR23); in LibVEX_GuestPPC64_initialise()
599 VECZERO(vex_state->guest_VSR24); in LibVEX_GuestPPC64_initialise()
600 VECZERO(vex_state->guest_VSR25); in LibVEX_GuestPPC64_initialise()
601 VECZERO(vex_state->guest_VSR26); in LibVEX_GuestPPC64_initialise()
602 VECZERO(vex_state->guest_VSR27); in LibVEX_GuestPPC64_initialise()
603 VECZERO(vex_state->guest_VSR28); in LibVEX_GuestPPC64_initialise()
604 VECZERO(vex_state->guest_VSR29); in LibVEX_GuestPPC64_initialise()
605 VECZERO(vex_state->guest_VSR30); in LibVEX_GuestPPC64_initialise()
606 VECZERO(vex_state->guest_VSR31); in LibVEX_GuestPPC64_initialise()
607 VECZERO(vex_state->guest_VSR32); in LibVEX_GuestPPC64_initialise()
608 VECZERO(vex_state->guest_VSR33); in LibVEX_GuestPPC64_initialise()
609 VECZERO(vex_state->guest_VSR34); in LibVEX_GuestPPC64_initialise()
610 VECZERO(vex_state->guest_VSR35); in LibVEX_GuestPPC64_initialise()
611 VECZERO(vex_state->guest_VSR36); in LibVEX_GuestPPC64_initialise()
612 VECZERO(vex_state->guest_VSR37); in LibVEX_GuestPPC64_initialise()
613 VECZERO(vex_state->guest_VSR38); in LibVEX_GuestPPC64_initialise()
614 VECZERO(vex_state->guest_VSR39); in LibVEX_GuestPPC64_initialise()
615 VECZERO(vex_state->guest_VSR40); in LibVEX_GuestPPC64_initialise()
616 VECZERO(vex_state->guest_VSR41); in LibVEX_GuestPPC64_initialise()
617 VECZERO(vex_state->guest_VSR42); in LibVEX_GuestPPC64_initialise()
618 VECZERO(vex_state->guest_VSR43); in LibVEX_GuestPPC64_initialise()
619 VECZERO(vex_state->guest_VSR44); in LibVEX_GuestPPC64_initialise()
620 VECZERO(vex_state->guest_VSR45); in LibVEX_GuestPPC64_initialise()
621 VECZERO(vex_state->guest_VSR46); in LibVEX_GuestPPC64_initialise()
622 VECZERO(vex_state->guest_VSR47); in LibVEX_GuestPPC64_initialise()
623 VECZERO(vex_state->guest_VSR48); in LibVEX_GuestPPC64_initialise()
624 VECZERO(vex_state->guest_VSR49); in LibVEX_GuestPPC64_initialise()
625 VECZERO(vex_state->guest_VSR50); in LibVEX_GuestPPC64_initialise()
626 VECZERO(vex_state->guest_VSR51); in LibVEX_GuestPPC64_initialise()
627 VECZERO(vex_state->guest_VSR52); in LibVEX_GuestPPC64_initialise()
628 VECZERO(vex_state->guest_VSR53); in LibVEX_GuestPPC64_initialise()
629 VECZERO(vex_state->guest_VSR54); in LibVEX_GuestPPC64_initialise()
630 VECZERO(vex_state->guest_VSR55); in LibVEX_GuestPPC64_initialise()
631 VECZERO(vex_state->guest_VSR56); in LibVEX_GuestPPC64_initialise()
632 VECZERO(vex_state->guest_VSR57); in LibVEX_GuestPPC64_initialise()
633 VECZERO(vex_state->guest_VSR58); in LibVEX_GuestPPC64_initialise()
634 VECZERO(vex_state->guest_VSR59); in LibVEX_GuestPPC64_initialise()
635 VECZERO(vex_state->guest_VSR60); in LibVEX_GuestPPC64_initialise()
636 VECZERO(vex_state->guest_VSR61); in LibVEX_GuestPPC64_initialise()
637 VECZERO(vex_state->guest_VSR62); in LibVEX_GuestPPC64_initialise()
638 VECZERO(vex_state->guest_VSR63); in LibVEX_GuestPPC64_initialise()
642 vex_state->guest_CIA = 0; in LibVEX_GuestPPC64_initialise()
643 vex_state->guest_LR = 0; in LibVEX_GuestPPC64_initialise()
644 vex_state->guest_CTR = 0; in LibVEX_GuestPPC64_initialise()
646 vex_state->guest_XER_SO = 0; in LibVEX_GuestPPC64_initialise()
647 vex_state->guest_XER_OV = 0; in LibVEX_GuestPPC64_initialise()
648 vex_state->guest_XER_CA = 0; in LibVEX_GuestPPC64_initialise()
649 vex_state->guest_XER_BC = 0; in LibVEX_GuestPPC64_initialise()
651 vex_state->guest_CR0_321 = 0; in LibVEX_GuestPPC64_initialise()
652 vex_state->guest_CR0_0 = 0; in LibVEX_GuestPPC64_initialise()
653 vex_state->guest_CR1_321 = 0; in LibVEX_GuestPPC64_initialise()
654 vex_state->guest_CR1_0 = 0; in LibVEX_GuestPPC64_initialise()
655 vex_state->guest_CR2_321 = 0; in LibVEX_GuestPPC64_initialise()
656 vex_state->guest_CR2_0 = 0; in LibVEX_GuestPPC64_initialise()
657 vex_state->guest_CR3_321 = 0; in LibVEX_GuestPPC64_initialise()
658 vex_state->guest_CR3_0 = 0; in LibVEX_GuestPPC64_initialise()
659 vex_state->guest_CR4_321 = 0; in LibVEX_GuestPPC64_initialise()
660 vex_state->guest_CR4_0 = 0; in LibVEX_GuestPPC64_initialise()
661 vex_state->guest_CR5_321 = 0; in LibVEX_GuestPPC64_initialise()
662 vex_state->guest_CR5_0 = 0; in LibVEX_GuestPPC64_initialise()
663 vex_state->guest_CR6_321 = 0; in LibVEX_GuestPPC64_initialise()
664 vex_state->guest_CR6_0 = 0; in LibVEX_GuestPPC64_initialise()
665 vex_state->guest_CR7_321 = 0; in LibVEX_GuestPPC64_initialise()
666 vex_state->guest_CR7_0 = 0; in LibVEX_GuestPPC64_initialise()
668 vex_state->guest_FPROUND = PPCrm_NEAREST; in LibVEX_GuestPPC64_initialise()
669 vex_state->guest_DFPROUND = PPCrm_NEAREST; in LibVEX_GuestPPC64_initialise()
670 vex_state->pad1 = 0; in LibVEX_GuestPPC64_initialise()
671 vex_state->pad2 = 0; in LibVEX_GuestPPC64_initialise()
673 vex_state->guest_VRSAVE = 0; in LibVEX_GuestPPC64_initialise()
675 vex_state->guest_VSCR = 0x0; // Non-Java mode = 0 in LibVEX_GuestPPC64_initialise()
677 vex_state->guest_EMNOTE = EmNote_NONE; in LibVEX_GuestPPC64_initialise()
679 vex_state->padding = 0; in LibVEX_GuestPPC64_initialise()
681 vex_state->guest_CMSTART = 0; in LibVEX_GuestPPC64_initialise()
682 vex_state->guest_CMLEN = 0; in LibVEX_GuestPPC64_initialise()
684 vex_state->guest_NRADDR = 0; in LibVEX_GuestPPC64_initialise()
685 vex_state->guest_NRADDR_GPR2 = 0; in LibVEX_GuestPPC64_initialise()
687 vex_state->guest_REDIR_SP = -1; in LibVEX_GuestPPC64_initialise()
689 vex_state->guest_REDIR_STACK[i] = 0; in LibVEX_GuestPPC64_initialise()
691 vex_state->guest_IP_AT_SYSCALL = 0; in LibVEX_GuestPPC64_initialise()
692 vex_state->guest_SPRG3_RO = 0; in LibVEX_GuestPPC64_initialise()
693 vex_state->guest_TFHAR = 0; in LibVEX_GuestPPC64_initialise()
694 vex_state->guest_TFIAR = 0; in LibVEX_GuestPPC64_initialise()
695 vex_state->guest_TEXASR = 0; in LibVEX_GuestPPC64_initialise()
696 vex_state->guest_PPR = 0x4ULL << 50; // medium priority in LibVEX_GuestPPC64_initialise()
697 vex_state->guest_PSPB = 0x100; // an arbitrary non-zero value to start with in LibVEX_GuestPPC64_initialise()