Re: Architectures with strict alignment?



Hi,

Kostik Belousov wrote:
On Mon, Dec 31, 2007 at 05:38:43PM +0800, Erich Dollansky wrote:
Kostik Belousov wrote:
On Sat, Dec 29, 2007 at 01:12:04PM +0200, Kostik Belousov wrote:
On Sat, Dec 29, 2007 at 12:14:11AM -0800, Kip Macy wrote:
I.e., it seems that gcc does not feel too guilty generating unaligned
half-word writes on i386. :(
this should not be a problem inside a cache line.

If the access goes accross two cache lines and the other cache line is not in the cache, it becomes real difficult.

I can't tell you what the hardware actually does in this case.

It should read the second affected cache line into the cache. But what happens if the second affected cache line is blocked by another CPU while the current CPU blocks the first cache line?

From the manual, 253668, 7.1.1:

I think we might get any half of the operation as a result.

so, both CPUs are blocked as none can access the other cache line.

Is there really nothing in a normal PC to handle this?

I do not know. The hardware I developed earlier was able to handle this by aborting both bus cycles.

It was then task of the operating system to handle this.

Erich
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Xilinx Dual processor design
    ... Is it possible to port an OS that uses this dual-core system. ... That depends on your operating system. ... cache coherency so a system with physically shared memory can't use the ... If you have to use external memory it will kill ...
    (comp.arch.fpga)
  • Re: Memory usage: buffer and cache
    ... > Buffer is a logical cache maintained by the operating system in the ... > main memory while cache is actually a physical hardware that the cpu ... > uses to decrease the effective memory access time. ...
    (Debian-User)
  • Re: Ctr + Enter is not adding www. and .Com In Internet Explorer
    ... try emptying your cache and set the default settings in ... > I am Using windows Xp Professional version as Operating System and have ...
    (microsoft.public.windowsxp.basics)
  • Re: is there a DNS server implemented in lisp? to replace bind9?
    ... the operating system and already works just fine, ... separation of the cache and nameserver, ...
    (comp.lang.lisp)
  • Re: ie cache stays after i clear temp internet files
    ... Remove your TIF cache index it may be corrupt, a new one will be created. ... and with most operating system. ... These files do not show in windows explorer, ... It seems every internet page I ...
    (microsoft.public.windows.inetexplorer.ie6.browser)