Skip to content

Commit 775fc35

Browse files
committed
initialize send and receive pointers to 0
1 parent a613df7 commit 775fc35

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Test/Expect/stest255.p2asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ builtin_longfill_
4949
__methods__
5050
long @__methodtable__
5151
__recvreg
52-
long 1024
52+
long 0
5353
objptr
5454
long @objmem
5555
result1

backends/asm/outasm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,13 +1312,13 @@ CompileSymbolForFunc(IRList *irl, Symbol *sym, Function *func, AST *ast)
13121312
if (off == -1) {
13131313
// this is a special internal COG variable
13141314
if (!sendreg) {
1315-
sendreg = GetOneGlobal(REG_REG, "__sendreg", P2_HUB_BASE);
1315+
sendreg = GetOneGlobal(REG_REG, "__sendreg", 0);
13161316
}
13171317
return sendreg;
13181318
} else if (off == -2) {
13191319
// this is a special internal COG variable
13201320
if (!recvreg) {
1321-
recvreg = GetOneGlobal(REG_REG, "__recvreg", P2_HUB_BASE);
1321+
recvreg = GetOneGlobal(REG_REG, "__recvreg", 0);
13221322
}
13231323
return recvreg;
13241324
} else if (off == -3) {

0 commit comments

Comments
 (0)