mipsr6_emul(9)
β¨ mipsr6_emul(9) β¨
okay so this is a page from the Kernel API Manual, bestie, and lemme tell you it's a good one π
π NAME π
mipsr6_emul β the function that emulates some of the super frequent R2/R5/R6 instructions in the delay slot, purely for performance π
like, fr fr, the whole point is speed. The old-school way of doing this was using a stack trampoline, and ngl that thing is rather slow π so instead we do the emulation thing. periodt.
π¦ SYNOPSIS π¦
int mipsr6_emul (struct pt_regs *regs , u32 ir );
πΈ ARGUMENTS πΈ
regsβ the process register set. like, the whole vibe check of the registers, all of them π«Άirβ the instruction. the one single instruction you're dealing with β
π SEE ALSO π
bestie there is a whole family here and we are obsessed π
First up, the kernel file itself:
./arch/mips/kernel/mips-r2-to-r6-emul.c
and then the entire friend group of helper funcs, all of them (9):
movf_func(9)movt_func(9)jr_func(9)movz_func(9)movn_func(9)mfhi_func(9)mthi_func(9)mflo_func(9)mtlo_func(9)mult_func(9)multu_func(9)div_func(9)divu_func(9)dmult_func(9)dmultu_func(9)ddiv_func(9)ddivu_func(9)madd_func(9)maddu_func(9)msub_func(9)msubu_func(9)mul_func(9)clz_func(9)clo_func(9)dclz_func(9)dclo_func(9)mipsr2_decoder(9)
no cap, that's a lot of little funcs but they all ate π every single one is on here for a reason, don't skip any π
and that's the whole page, babe π§β¨ this one lives under ./arch/mips/kernel and the version/date stamp on it is October 2026 β so yeah, go off, October 2026, we see you ππ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms