118return (*((
RV64IMACFD*)cpu)->CSR[3LL] >> 5ULL) & 7ULL;
164if (csr == 768LL || csr == 256LL) {
167return *((
RV64IMACFD*)cpu)->CSR[768LL] | 8589934592ULL | 34359738368ULL;
174return (((2ULL) << 62) | ((((*((
RV64IMACFD*)cpu)->CSR[769LL]) >> (0LL)) & 4611686018427387903ULL)));
192etiss_coverage_count(10, 520, 505, 519, 513, 508, 514, 517, 515, 516, 518);
194 else if (csr == 2LL) {
196*((
RV64IMACFD*)cpu)->CSR[3LL] = ((val & 7ULL) << 5ULL) | (*((
RV64IMACFD*)cpu)->CSR[3LL] & 31ULL);
197etiss_coverage_count(14, 538, 523, 537, 529, 526, 524, 525, 527, 528, 530, 535, 533, 534, 536);
199 else if (csr == 3LL) {
204 else if (csr == 768LL) {
209 else if (csr == 256LL) {
214 else if (csr != 769LL) {
266if ((val << 32ULL) == 0LL) {
277if ((val << 48ULL) == 0LL) {
288if ((val << 56ULL) == 0LL) {
299if ((val << 60ULL) == 0LL) {
310if ((val << 62ULL) == 0LL) {
321if ((val << 63ULL) == 0LL) {
352etiss_int32 irq2 = (mcause & 9223372036854775808ULL) != 0LL;
361bit = bit & 9223372036854775807ULL;
373if (((
RV64IMACFD*)cpu)->PRIV <= 1LL && (deleg >> bit) & 1ULL) {
377vector = ((*((
RV64IMACFD*)cpu)->CSR[261LL] & 1ULL) && irq2) ? (bit * 4ULL) : (0LL);
378etiss_coverage_count(13, 792, 778, 791, 786, 783, 781, 782, 784, 785, 789, 787, 788, 790);
379cpu->nextPc = (*((
RV64IMACFD*)cpu)->CSR[261LL] & -2LL) + vector;
402vector = ((*((
RV64IMACFD*)cpu)->CSR[773LL] & 1ULL) && irq2) ? (bit * 4ULL) : (0LL);
403etiss_coverage_count(13, 861, 847, 860, 855, 852, 850, 851, 853, 854, 858, 856, 857, 859);
404cpu->nextPc = (*((
RV64IMACFD*)cpu)->CSR[773LL] & -2LL) + vector;
496if (!(pending_interrupts)) {
509if (enabled_interrupts == 0LL) {
519enabled_interrupts = pending_interrupts & deleg & -(s_enabled);
524if (enabled_interrupts) {
529if (enabled_interrupts >> 12ULL) {
531enabled_interrupts = enabled_interrupts >> 12ULL << 12ULL;
534 else if (enabled_interrupts & 2048LL) {
536enabled_interrupts = 2048LL;
539 else if (enabled_interrupts & 8LL) {
541enabled_interrupts = 8LL;
544 else if (enabled_interrupts & 128LL) {
546enabled_interrupts = 128LL;
549 else if (enabled_interrupts & 512LL) {
551enabled_interrupts = 512LL;
554 else if (enabled_interrupts & 2LL) {
556enabled_interrupts = 2LL;
559 else if (enabled_interrupts & 32LL) {
561enabled_interrupts = 32LL;
564 else if (enabled_interrupts & 8192LL) {
566enabled_interrupts = 8192LL;
569 else if (enabled_interrupts & 1024LL) {
571enabled_interrupts = 1024LL;
574 else if (enabled_interrupts & 4LL) {
576enabled_interrupts = 4LL;
579 else if (enabled_interrupts & 64LL) {
581enabled_interrupts = 64LL;
590return 9223372036854775808ULL |
RV64IMACFD_ctz(enabled_interrupts);