public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: fche@redhat.com (Frank Ch. Eigler)
To: "moris dong" <moris_dong@hotmail.com>
Cc: sid@sources.redhat.com
Subject: Re: SMP board : Bug in SID or configuration file ?
Date: Wed, 30 Mar 2005 19:04:00 -0000	[thread overview]
Message-ID: <y0m7jjpklb7.fsf@toenail.toronto.redhat.com> (raw)
In-Reply-To: <BAY22-F288BFFC2A7BDC7B5A63068F8450@phx.gbl>


"moris dong" <moris_dong@hotmail.com> writes:

> I tried to set a simple configuration file for a two-processor SMP
> board (see below).  I use two loaders and two gloss (angel)
> instances, one per CPU.

Good.

> I use a remapper (MMU?) so the addresses generated by the second
> processor will not conflict with the addresses generated by the
> first [...]

You can also configure a hw-mapper-basic component to remap addresses
(see the "mapped_base" option).


> [...]  But, when I enable the two CPUs (connect-pin target-sched
> 0-event -> cpu1 & connect-pin target-sched 1-event -> cpu2) I get a
> segmentation fault.

That's a bug.  SID should not SEGV even on bad configuration.  Could
run SID under a debugger and report the backtrace at the point of
crash?

> 1. What is wrong with my configuration file that is causing this
> core-dump ?  [...]

Just glancing over it, nothing obvious is wrong.

> 3. [...]
> How can I get two processes to run in a thread-like manner, sharing
> the memory, doing locks etc. What is the programing model (pthreads
> ?), how do I write such a program for SID and how do I start it ?

Such functionality can only be layered above sid, within the OS you
would run on the simulator.  GLOSS is the only piece that emulates
some aspect of the software layer, and extending it to implementing
multithreading system calls would be a big job.

Think of SID as primarily modelling hardware, its components like the
integrated circuits; its configuration like the pattern of connections
etched into a printed circuit board.


- FChE

  parent reply	other threads:[~2005-03-30 19:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-29 18:37 moris dong
2005-03-29 19:21 ` Dave Brolley
2005-03-30 19:04 ` Frank Ch. Eigler [this message]
2005-03-31  6:30   ` moris dong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=y0m7jjpklb7.fsf@toenail.toronto.redhat.com \
    --to=fche@redhat.com \
    --cc=moris_dong@hotmail.com \
    --cc=sid@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).