mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01: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:
@@ -59,7 +59,7 @@ class Genode::Fpu
|
||||
public:
|
||||
|
||||
~Context() { if (_fpu) _fpu->unset(*this); }
|
||||
} __attribute__((aligned(16)));
|
||||
};
|
||||
|
||||
private:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user