Skip to main content

Questions tagged [cpu-architecture]

The hardware microarchitecture (x86, x86_64, ARM, ...) of a CPU or microcontroller. Use this tag for questions regarding features, bugs and details concerning the inner working of specific CPU architectures.

cpu-architecture
0 votes
0 answers
26 views

Can you have multiple copies of same data in cpu cache

From wikipedia https://en.wikipedia.org/wiki/Cache_coherence Multiple copies of same data can exist in different cache simultaneously and if processors are allowed to update their own copies freely, ...
progr's user avatar
  • 33
0 votes
2 answers
48 views

Can false sharing happen in Direct-Mapped Cache?

If each address in memory is directly mapped to deterministic location in cache, cache coherence is not needed because all thread that access share data share the same cache. Ie. Within the context of ...
progr's user avatar
  • 33
0 votes
0 answers
13 views

At what point in the interrupt-processing path does device-driver code execute?

I am new to interrupt handlers and device i/o and I have a few questions: When you load a device-driver, i.e. kernel module, its assembly code is stored in the module-mapping region of the Kernel ...
bonecrusher's user avatar
0 votes
0 answers
22 views

While running a piece of driver code on an AMD64 machine, it appears that there are issues related to cache consistency or out-of-order execution

While running a piece of driver code on an AMD64 machine, it appears that there are issues related to cache consistency or out-of-order execution. Are there any experienced engineers who can help ...
HnlyWk's user avatar
  • 23
1 vote
0 answers
18 views

the Perf event issues of hardware prefetcher (all_pf_data_rd and pf_l2_data_rd)

My platform is 2nd generation scalable Xeon, equipped with a non-inclusive cache. I run a series of tests that had the L2 stream prefetcher aggressively prefetching. I use Perf to monitor performance, ...
grayxu's user avatar
  • 132
-2 votes
0 answers
31 views

Difference between an 8-bit addressable CPU and an 8-bit CPU [closed]

I was recently given a test and they mentioned that the CPU was an 8-bit addressable one. They wanted me to write a C program that would write a character of arrays to some specific location in the ...
blindhunter's user avatar
-1 votes
0 answers
33 views

How does one Compute Fractional Values into Different BCD Codes?

I know the basics of the Gray and 84-2-1 code, for example a value like 5 should be 1011 in 84-2-1 8 4 -2 -1 1 0 1 1 8 - 2 - 1 = 5 whereas in Gray Code it should be 101 101 (binary of 5) add 1 to MSB ...
VinWind's user avatar
0 votes
0 answers
19 views

comparing the performance of a x86 processor with gem5

I'm trying to create a gem5 implementation that is close to a x86 processor in terms of performance. However, I'm not sure which statistic I can use to compare the performance of the two. I was ...
user23447276's user avatar
-1 votes
0 answers
50 views

lmc program division assembly languange

I'm trying to solve this challenge: create a simple LMC program to determine if a number evenly divides another one: Input 2 numbers If they do not evenly divide, then the program outputs 0 and asks ...
milf43 Dining's user avatar
0 votes
0 answers
25 views

what openOCD does to spike while debugging a program with spike?

My initial aim is to understand how debug mode works to design the debug mode of a CPU. I am following the guidelines of the riscv-isa-sim repo to debug a program. The only difference is creating a ...
Ömer GÜZEL's user avatar
-1 votes
1 answer
67 views

What happens with the store "that lost race" to shared memory in x86 TSO memory model?

I know that x86 processors use TSO memory model and I am curious about one thing. I will explain it through example. We have two processors (P1 and P2) where P1 stores X=1 to its store buffer and P2 ...
Cosmos's user avatar
  • 135
0 votes
2 answers
70 views

How exactly x86 processor fetches the first instruction from SPI flash memory

On a x86 processor upon power ON of the system , the first instruction the processor usually execute is at 0xFFFFFFF0 which is called reset vector. Typically this address is in the BIOS or flash ...
shivakumar's user avatar
0 votes
2 answers
38 views

MOESI Protocol: What happens when Owned is dirty and other processors read the line in Shared?

I've been thinking about the "owned" state of the MOESI protocol. So let's say the following situation exists: P0 has line A in O state. P1 has line A in S state. P0 writes to line A in its ...
jkang's user avatar
  • 511
5 votes
0 answers
161 views

How can a weaker memory model prevent slowdown from false sharing?

I have been experimenting with a simple true/false sharing benchmark, which does regular load+increment+write on a pointer. Basically this: static void do_increments(volatile size_t *buffer, size_t ...
aolo2's user avatar
  • 51
2 votes
1 answer
29 views

How does ARM's MTE prevent off-by-one memory errors?

I understand that MTE uses TBI (Top Bit Ignore) feature from ARM, so some of the top 4 bits in a virtual memory address is used to carry the tag for the memory allocation. But then I'm curious how ...
Semin Park's user avatar

15 30 50 per page
1
2 3 4 5
281