Commit fd5d3dc6 authored by Avi Kivity's avatar Avi Kivity
Browse files

Change LTR's operand to be a u16



This makes it pick the correct register size.

Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 988c9e88
......@@ -191,7 +191,7 @@ static inline u16 sldt(void)
return val;
}
static inline void ltr(unsigned val)
static inline void ltr(u16 val)
{
asm volatile ("ltr %0" : : "rm"(val));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment