IMPLEMENT static inline
Mword Proc::program_counter()
{
- register Mword pc asm ("pc");
+ Mword pc;
+ asm ("mov %0, pc" : "=r" (pc));
return pc;
}
: "memory");
}
-IMPLEMENT static inline
+IMPLEMENT static inline ALWAYS_INLINE
void Proc::sti()
{
Mword v;
: "memory");
}
-IMPLEMENT static inline
+IMPLEMENT static inline ALWAYS_INLINE
Proc::Status Proc::cli_save()
{
Status ret;
return !(ret & Sti_mask);
}
-IMPLEMENT static inline
+IMPLEMENT static inline ALWAYS_INLINE
void Proc::sti_restore(Status st)
{
if (!(st & Sti_mask))