Skip to content

Instantly share code, notes, and snippets.

View dnadlinger's full-sized avatar

David Nadlinger dnadlinger

View GitHub Profile
diff --git a/misoc/software/include/base/stdbool.h b/misoc/software/include/base/stdbool.h
index d58bb58f..30b41651 100644
--- a/misoc/software/include/base/stdbool.h
+++ b/misoc/software/include/base/stdbool.h
@@ -1,8 +1,12 @@
#ifndef __STDBOOL_H
#define __STDBOOL_H
+#ifndef __cplusplus
+
# If this is a variable, we might need to contract the live range.
for name in self._names_of(target):
region = self._region_of(name)
if not region.present():
for env in self.env_stack:
if name.id in env:
env[name.id] = value_region
File "/home/ion/scratch/artiq/artiq/compiler/module.py", line 73, in __init__
escape_validator.visit(src.typedtree)
File "/home/ion/miniconda3/envs/artiq/lib/python3.5/site-packages/pythonparser/algorithm.py", line 41, in visit
return self._visit_one(obj)
File "/home/ion/miniconda3/envs/artiq/lib/python3.5/site-packages/pythonparser/algorithm.py", line 32, in _visit_one
return getattr(self, visit_attr)(node)
File "/home/ion/scratch/artiq/artiq/compiler/validators/escape.py", line 276, in visit_ModuleT
self.visit_in_region(node, None, node.typing_env)
File "/home/ion/scratch/artiq/artiq/compiler/validators/escape.py", line 269, in visit_in_region
self.generic_visit(node)
from artiq.experiment import *
from artiq.coredevice.urukul import urukul_sta_smp_err, urukul_cfg
from artiq.coredevice.ad9910 import (_AD9910_REG_SYNC, _AD9910_REG_CFR1,
_AD9910_REG_CFR2)
import numpy as np
_MULTICHIP_SYNC_RECV = (1 << 27) + (1 << 26) # + (4<<28)
@portable
[ 35635.553372s] ERROR(runtime::moninj::remote_moninj): aux packet error (timeout)
[ 35635.574874s] WARN(runtime::rtio_mgt::drtio): [LINK#0] unsolicited aux packet: InjectionStatusReply { value: 0 }
[ 35677.346414s] ERROR(runtime::moninj::remote_moninj): aux packet error (timeout)
[ 35677.390290s] WARN(runtime::rtio_mgt::drtio): [LINK#0] unsolicited aux packet: MonitorReply { value: 1 }
[ 35696.678843s] ERROR(runtime::moninj::remote_moninj): aux packet error (timeout)
[ 35696.685051s] ERROR(runtime::rtio_mgt::drtio): [DEST#1] received unexpected aux packet: InjectionStatusReply { value: 0 }
[ 35696.768729s] ERROR(runtime::moninj::remote_moninj): received unexpected aux packet: DestinationOkReply
[ 35696.826899s] ERROR(runtime::moninj::remote_moninj): aux packet error (aux packet error)
[ 35696.884522s] ERROR(runtime::moninj::remote_moninj): aux packet error (aux packet error)
[ 35696.941836s] ERROR(runtime::moninj::remote_moninj): aux packet error (aux packet error)
from artiq.experiment import *
class DMAInputGateTest(EnvExperiment):
def build(self):
self.setattr_device("core")
self.setattr_device("core_dma")
self.setattr_device("loop_out")
self.setattr_device("loop_in")
self.setattr_device("scheduler")
diff --git a/src/core/runtime.d b/src/core/runtime.d
index c569d74..ab0975a 100644
--- a/src/core/runtime.d
+++ b/src/core/runtime.d
@@ -50,7 +50,7 @@ private
}
-static this()
+shared static this()
import core.stdc.stdio;
struct ThrowingCtor {
const char* name;
this(const char* name) {
printf("Constructing %s\n", name);
this.name = name;
throw new Exception("somebody set up us the bomb");
}
uint count;
struct S {
uint x;
void opAssign(const ref S rhs) { assert(false); }
~this() { ++count; }
}
void main() {
import std.stdio;
import std.process;
import std.random;
import std.exception;
import std.uuid;
import std.range;
import std.string;
// x86_32 - bug with empty struct - fixed