--- Log opened Sun May 28 00:00:04 2017 | ||
shorne | Hello, its been quiet lately | 06:28 |
---|---|---|
shorne | I have been working on gdb | 06:28 |
shorne | a few things | 06:28 |
shorne | 1. moved out the target decsription patch, as dicussed with yao qi on the gdb list (its more of a general gdb patch) | 06:29 |
shorne | (todo on that is to build a testsuite for the feature to allow arbitrary groups in the xml target descriptor | 06:30 |
shorne | 2. cleaned up the sim testsuite indentation/fsf code style | 06:30 |
shorne | 3. right now I am working on fixing a lots of TODOs that have been left in the sim testsuite | 06:31 |
shorne | I seems there is one issue with the cpu description | 06:31 |
shorne | Anyone have and idea on this? | 06:31 |
shorne | dni (l-mul) "l.mul reg/reg/reg" | 06:32 |
shorne | ((MACH ORBIS-MACHS)) | 06:32 |
shorne | ("l.mul $rD,$rA,$rB") | 06:32 |
shorne | (+ OPC_ALU rD rA rB (f-resv-10-7 #x30) OPC_ALU_REGREG_MUL) | 06:32 |
shorne | (sequence () | 06:32 |
shorne | (sequence () | 06:32 |
shorne | ; 2's complement overflow | 06:32 |
shorne | (set BI sys-sr-ov (mul-o2flag WI rA rB)) | 06:32 |
shorne | ; 1's complement overflow | 06:32 |
shorne | (set BI sys-sr-cy (mul-o1flag WI rA rB)) | 06:32 |
shorne | (set rD (mul WI rA rB)) | 06:32 |
shorne | ) | 06:32 |
shorne | (if (andif sys-sr-ov sys-sr-ove) | 06:32 |
shorne | (raise-except... | 06:32 |
shorne | But... in the spec it says | 06:32 |
shorne | rD[31:0] ← rA[31:0] * rB[31:0] | 06:32 |
shorne | SR[OV] ← signed overflow | 06:32 |
shorne | Nothing about setting carry bit | 06:33 |
shorne | this test is failing, anyone else agree the cpu description (lisp) needs fixing? | 06:34 |
shorne | I suggest just remove (set BI sys-sr-cy (mul-o1flag WI rA rB)) | 08:41 |
-!- ZipCPU_ is now known as ZipCPU | 08:48 | |
shorne | hmm, similar with divide | 09:10 |
shorne | "l.div $rD,$rA,$rB" | 09:11 |
shorne | (+ OPC_ALU rD rA rB (f-resv-10-7 #x30) OPC_ALU_REGREG_DIV) | 09:11 |
shorne | (sequence () | 09:11 |
shorne | (if (ne rB 0) | 09:11 |
shorne | (sequence () | 09:11 |
shorne | (set BI sys-sr-cy 0) | 09:11 |
shorne | (set WI rD (div WI rA rB)) | 09:11 |
shorne | ) | 09:11 |
shorne | (set BI sys-sr-cy 1) | 09:11 |
shorne | ) | 09:11 |
shorne | the spec says | 09:11 |
shorne | rD[31:0] ← rA[31:0] / rB[31:0] | 09:11 |
shorne | SR[OV] | 09:11 |
shorne | ← rB[31:0] == 0 | 09:11 |
shorne | (lisp) sets carry, but spec says to set overflow | 09:11 |
shorne | I dont think many even care | 09:12 |
windel | For those interested in my bare metal example from yesterday, I put it here: https://github.com/windelbouwman/ppci-mirror/blob/master/examples/or1k/baremetal/makebare.py | 10:52 |
windel | The only question that I still have is whether the MMU must be configured before startup | 11:12 |
wbx | rth: hi. are you going to push openrisc gcc support upstream? | 12:13 |
rth | wbx: no. as i understand it we don't have assignments from all the people that contributed. | 12:14 |
wbx | rth: so it is based on the same "problematic" code? damn. | 12:14 |
rth | wbx: there has been no concerted effort to either (1) rewrite from scratch or (2) verify that the problematic bits are gone. | 12:15 |
wbx | rth: may I ask an unrelated alpha architecture question? | 12:23 |
rth | sure | 12:23 |
wbx | i have read an email about __NR_oldumount hanlding. http://marc.info/?l=linux-kernel&m=137459284017180&w=2 | 12:24 |
wbx | rth: why the change was never made into upstream kernel? | 12:24 |
rth | heh. i don't remember. maybe i thought michael was going to take care of it. | 12:25 |
rth | he has done more than i in the last decade... | 12:26 |
wbx | rth: i playing a little with alpha - uClibc-ng. static system works. but with ld.so porting I got again into the issue with the special umount handling. | 12:26 |
wbx | rth: on which hardware you run linux? i got recently a DEC multia box and trying to netboot via mopd. 4.9.30 kernel does not boot. what do you think is a safe kernel version to get something going? | 12:27 |
rth | wbx: I have no hardware anymore. I use qemu. | 12:27 |
rth | i think i'm currently running 4.10, but i'd have to check. | 12:28 |
wbx | bbl | 12:32 |
shorne | windel: keeps logging off, not sure if they check the irc log online, but I dont think the mmu needs to be enabled. | 18:49 |
shorne | The code is compiked using "api.asm()" which is a python compiler | 18:50 |
shorne | ok, I see pure python compiler | 18:53 |
shorne | If you are having problems you can try running qemu with trace enabled TRACE="-D trace.txt -d in_asm,exec,int,cpu,op_opt" | 18:54 |
--- Log closed Mon May 29 00:00:05 2017 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!