Date: Thu, 26 Apr 2018 12:01:11 +0200 From: Jan Mazur <dingorth@gmail.com> To: freebsd-mips@freebsd.org Subject: What is the purpose of MipsEmulateBranch function? Message-ID: <CADGEm4doaap9T-pJ8HBAT_=ZVgNhuo=Lqu3Vunc6E8%2BRJTPu8A@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi I'm wondering why FreeBSD has to simulate branches when the faulting instruction is in the branch delay slot. I'm curious about MipsEmulateBranch function, which is defined in http://bxr.su/FreeBSD/sys/mips/mips/trap.c#MipsEmulateBranch Why can't you just restart execution from the branch instruction?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CADGEm4doaap9T-pJ8HBAT_=ZVgNhuo=Lqu3Vunc6E8%2BRJTPu8A>