mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 05:37:54 +00:00
hw_x86_64: remove aligment attribute from FPU context
We do not ensure that the Fpu::Context is 16-byte aligned and, therefore, should not tell the compiler that we did. Otherwise, the GCC may optimize operations regarding the addresses of members as it did for if ((addr_t)_fxsave_area & 0xf) ... With the declared 16-byte alignment the condition will never become true.
This commit is contained in:
parent
638db70b94
commit
111d74744d
@ -59,7 +59,7 @@ class Genode::Fpu
|
||||
public:
|
||||
|
||||
~Context() { if (_fpu) _fpu->unset(*this); }
|
||||
} __attribute__((aligned(16)));
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user