From patchwork Mon Jan 4 00:55:50 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Frysinger X-Patchwork-Id: 10204 Received: (qmail 12767 invoked by alias); 4 Jan 2016 00:55:57 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 12751 invoked by uid 89); 4 Jan 2016 00:55:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=154, Sim, maintaining, accurately X-HELO: smtp.gentoo.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 04 Jan 2016 00:55:54 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A14AD33D3CA for ; Mon, 4 Jan 2016 00:55:51 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Subject: [PATCH] sim: TODO: move to wiki [committed] Date: Sun, 3 Jan 2016 19:55:50 -0500 Message-Id: <1451868950-28939-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes We're maintaining development docs in the wiki now: https://sourceware.org/gdb/wiki/Sim/TODO --- sim/bfin/ChangeLog | 4 ++++ sim/bfin/TODO | 54 ------------------------------------------------------ sim/frv/ChangeLog | 4 ++++ sim/frv/TODO | 8 -------- sim/m32r/ChangeLog | 4 ++++ sim/m32r/TODO | 9 --------- 6 files changed, 12 insertions(+), 71 deletions(-) delete mode 100644 sim/bfin/TODO delete mode 100644 sim/frv/TODO delete mode 100644 sim/m32r/TODO diff --git a/sim/bfin/ChangeLog b/sim/bfin/ChangeLog index ce03a80..1bbef04 100644 --- a/sim/bfin/ChangeLog +++ b/sim/bfin/ChangeLog @@ -1,5 +1,9 @@ 2016-01-03 Mike Frysinger + * TODO: Delete file. + +2016-01-03 Mike Frysinger + * interp.c (count_argc): Delete. (bfin_syscall): Change count_argc to countargv. (bfin_user_init): Likewise. diff --git a/sim/bfin/TODO b/sim/bfin/TODO deleted file mode 100644 index e5346d3..0000000 --- a/sim/bfin/TODO +++ /dev/null @@ -1,54 +0,0 @@ -need to review ASTAT write behavior - -how to model RETE and IVG0 bit in IPEND ... - -model the loop buffer ? this means no ifetches because they're cached. -see page 4-26 in Blackfin PRM under hardware loops. - -handle DSPID at 0xffe05000 - -CEC should handle multiple exceptions at same address. would need -exception processing to be delayed ? at least needs a stack for -the CEC to pop things off. - -R0 = [SP++]; gets traced as R0 = [P6++]; - -merge dv-bfin_evt with dv-bfin_cec since the EVT regs are part of the CEC - -fix single stepping over debug assert instructions in hardware - -exception in IVG5 causes double fault ? - -SIC int forwarding doesn't accurately reflect the hardware. what the sim -does is: - - device generates an interrupt - - int is sent to SIC - - SIC logs it into its ISR - - so long as SIC's IMASK allows it, bits set in ISR generate - an interrupt to the CEC - - no way to clear the SIC's ISR -the way the hardware works is that the device monitors the interrupt level and -the SIC's ISR bits are basically hardwired from each peripheral. so when the -device has its interrupt cleared, the bit in the SIC's ISR is automatically -cleared as well. -perhaps the only way to model this behavior in the sim is to have each device -set up an event callback that sends out a port event: a level of 0 means the -int has been ACKed and the SIC can clear its ISR while a level of 1 means the -int is being generated still. if the device is still generating an interrupt, -it can reschedule itself again. - -insns that cause an interrupt don't seem to be processed at the right time. -for example, setup a glue device that generates an interrupt upon right. -when the store insn is executed, the interrupt is taken right away instead -of being scheduled *after* the insn has finished executing. difference is -that RETI needs to point to the *next* insn and not the store insn. - -tests: - - check AN bits with Dreg subtraction - R0 = R1 - R2; - - check astat bits with vector add/sub +|+ - - check acc with VIT_MAX and similiar insns - -flush[0xffa00000] causes HWERR in sim but not on hardware ? - -convert to using do_hw_attach_regs ? diff --git a/sim/frv/ChangeLog b/sim/frv/ChangeLog index 05283b8..7a6b86a 100644 --- a/sim/frv/ChangeLog +++ b/sim/frv/ChangeLog @@ -1,5 +1,9 @@ 2016-01-03 Mike Frysinger + * TODO: Delete file. + +2016-01-03 Mike Frysinger + * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete. * configure: Regenerate. * frv.c (frvbf_h_fr_double_get_handler): Change diff --git a/sim/frv/TODO b/sim/frv/TODO deleted file mode 100644 index 6aa400b..0000000 --- a/sim/frv/TODO +++ /dev/null @@ -1,8 +0,0 @@ -- header file dependencies revisit -- hooks cleanup -- testsuites -- FIXME's -- memory accesses still test if profiling is on even in fast mode -- have semantic code use G/SET_H_FOO if not default [incl fun-access] -- have G/SET_H_FOO macros call function if fun-access -- --> can always use G/S_H_FOO macros diff --git a/sim/m32r/ChangeLog b/sim/m32r/ChangeLog index 7d0eaf2..c4c9759 100644 --- a/sim/m32r/ChangeLog +++ b/sim/m32r/ChangeLog @@ -1,5 +1,9 @@ 2016-01-03 Mike Frysinger + * TODO: Delete file. + +2016-01-03 Mike Frysinger + * configure.ac (SIM_AC_OPTION_HOSTENDIAN): Delete. * configure: Regenerate. * traps-linux.c (conv_endian): Change CURRENT_HOST_BYTE_ORDER diff --git a/sim/m32r/TODO b/sim/m32r/TODO deleted file mode 100644 index 263daac..0000000 --- a/sim/m32r/TODO +++ /dev/null @@ -1,9 +0,0 @@ -- header file dependencies revisit -- hooks cleanup -- testsuites -- FIXME's -- memory accesses still test if profiling is on even in fast mode -- fill nop counting done even in fast mode -- have semantic code use G/SET_H_FOO if not default [incl fun-access] -- have G/SET_H_FOO macros call function if fun-access -- --> can always use G/S_H_FOO macros