From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1872 invoked by alias); 30 Mar 2005 19:04:03 -0000 Mailing-List: contact sid-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: sid-owner@sources.redhat.com Received: (qmail 1851 invoked from network); 30 Mar 2005 19:03:58 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 30 Mar 2005 19:03:58 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j2UJ3wxH014734 for ; Wed, 30 Mar 2005 14:03:58 -0500 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j2UJ3wO24747; Wed, 30 Mar 2005 14:03:58 -0500 Received: from touchme.toronto.redhat.com (IDENT:postfix@touchme.toronto.redhat.com [172.16.14.9]) by pobox.toronto.redhat.com (8.12.8/8.12.8) with ESMTP id j2UJ3vqH031270; Wed, 30 Mar 2005 14:03:58 -0500 Received: from toenail.toronto.redhat.com (toenail.toronto.redhat.com [172.16.14.211]) by touchme.toronto.redhat.com (Postfix) with ESMTP id BB06B80004E; Wed, 30 Mar 2005 14:03:57 -0500 (EST) Received: from toenail.toronto.redhat.com (localhost.localdomain [127.0.0.1]) by toenail.toronto.redhat.com (8.13.1/8.12.5) with ESMTP id j2UJ3vle013774; Wed, 30 Mar 2005 14:03:57 -0500 Received: (from fche@localhost) by toenail.toronto.redhat.com (8.13.1/8.13.1/Submit) id j2UJ3uXd013771; Wed, 30 Mar 2005 14:03:56 -0500 X-Authentication-Warning: toenail.toronto.redhat.com: fche set sender to fche@redhat.com using -f To: "moris dong" Cc: sid@sources.redhat.com Subject: Re: SMP board : Bug in SID or configuration file ? References: X-Hashcash: 1:20:050330:moris_dong@hotmail.com::21712Z5ylR1mO9K8:0000000000000000000000000000000000000001mP5 X-Hashcash: 1:20:050330:sid@sources.redhat.com::sHMZRQPxTt0ASJEE:0000000000000000000000000000000000000004RA3 From: fche@redhat.com (Frank Ch. Eigler) Date: Wed, 30 Mar 2005 19:04:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2005-q1/txt/msg00036.txt.bz2 "moris dong" 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