segment.i: Added get_defsr() and set_defsr()

This commit is contained in:
gergely.erdelyi 2008-06-15 16:07:51 +00:00
parent c6444d4ff5
commit 754622e1c4

View File

@ -27,3 +27,13 @@
%include "segment.hpp" %include "segment.hpp"
%inline %{
sel_t get_defsr(segment_t *s, int reg)
{
return s->defsr[reg];
}
void set_defsr(segment_t *s, int reg, sel_t value)
{
s->defsr[reg] = value;
}
%}